本地自检关无线阀门
This commit is contained in:
parent
c42ac3f0aa
commit
85ea0ad683
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-10-23 17:14:16
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2025-02-21 15:41:41
|
||||
* @LastEditTime: 2025-02-22 19:15:35
|
||||
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
|
||||
* @Descrt_thread_
|
||||
*
|
||||
|
@ -322,7 +322,9 @@ int main(void)
|
|||
EMV_BACKWARD_ON(50);
|
||||
if (Flash_Get_Valve_Num())
|
||||
{
|
||||
Bt_Valve_Handler(kValveCmdCtr, 0, RT_NULL); // 自检无线阀门
|
||||
rt_uint8_t mac_addr[6];
|
||||
Flash_Get_Mac_Addr(mac_addr, 1);
|
||||
Bt_Valve_Handler(kValveCmdCtr, 1, mac_addr);
|
||||
if (rt_sem_take(&bt_ctr_sem, 10000) == RT_EOK)
|
||||
{
|
||||
LOG_D("电磁阀动作完成");
|
||||
|
|
Loading…
Reference in New Issue