本地自检关无线阀门

This commit is contained in:
小马_666 2025-02-22 19:20:52 +08:00
parent c42ac3f0aa
commit 85ea0ad683
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @Author: mbw * @Author: mbw
* @Date: 2024-10-23 17:14:16 * @Date: 2024-10-23 17:14:16
* @LastEditors: mbw && 1600520629@qq.com * @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 * @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
* @Descrt_thread_ * @Descrt_thread_
* *
@ -322,7 +322,9 @@ int main(void)
EMV_BACKWARD_ON(50); EMV_BACKWARD_ON(50);
if (Flash_Get_Valve_Num()) 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) if (rt_sem_take(&bt_ctr_sem, 10000) == RT_EOK)
{ {
LOG_D("电磁阀动作完成"); LOG_D("电磁阀动作完成");