Просмотр исходного кода

屏幕测试拍照结束后不执行清扫

zhunk 1 месяц назад
Родитель
Сommit
b03be65d5c

+ 1 - 1
Application_cbd_apm32f1/applications/control.h

@@ -19,7 +19,7 @@
 #define MATCH_DEVICE     0             //比赛设备1-开启 0-关闭
 #define SENSOR_EN        0             //温湿度:0关闭,1打开
 #define UART_TEST_EN     0             ///串口测试0-关闭,1-启用
-#define TG_MODULE        1             //推杆电机结构模块化控制
+#define TG_MODULE        0             //推杆电机结构模块化控制
 #define DINGZHI_0722     0             //控制一个电机每天12点20工作12秒
 #define QINGSAO_IO       1             //调整清扫顺序20250801
 #define WENKONG          1             //温控功能1-开启 0-关闭

+ 6 - 1
Application_cbd_apm32f1/applications/hmi.c

@@ -2040,6 +2040,7 @@ static void HMI_Decode(void)
         rt_free(takephotojson);
         HMI_WRITE("sysTest.switchPhoto.val=0");
         #else
+        device_status.test_flag=1;
         device_status.photo_ws = 1;
         #endif
     }
@@ -3034,7 +3035,11 @@ static void Ctr_Mortor_entry(void* parameter)
                 device_status.photo_ws = 0;
                 photo_led_sec = 900;
                 device_status.photo_left = 0;
-                device_status.clear_status = 1;
+                if(device_status.test_flag==0){
+                    device_status.clear_status = 1;
+                }else{
+                    device_status.test_flag = 0;
+                }
                 HMI_WRITE("sysTest.switchPhoto.val=0");
                 HMI_WRITE("sysTest.switchFill.val=0");
             }

+ 3 - 2
Application_cbd_apm32f1/readme.md

@@ -1,6 +1,7 @@
-# 2026-10-20 开机联网检测线程未退出时 HMI 侧不再重复发 read —— 版本 2.55 → 2.56
 
+# 2026-10-20 开机联网检测线程未退出时 HMI 侧不再重复发 read —— 版本 2.55 → 2.56
 
+20266-10-21:屏幕触发测试拍照不执行清扫;
 
 版本变更(control.h):2.55 → **2.56**
 
@@ -619,7 +620,7 @@ void fmt_fixed2(char *buf, rt_size_t size, double val, int prec)
 
 ## 五、后续约定(务必遵守)
 
-> 🔴 **本工程任何 printf 家族函数都不得使用 `%f` / `%e` / `%g`。**
+> ������ **本工程任何 printf 家族函数都不得使用 `%f` / `%e` / `%g`。**
 > 包括 `rt_snprintf` / `rt_sprintf` / `sprintf` / `HMI_WRITE` / `DTU_Write` / `Uart5_Write` /
 > `LOG_I` 等所有最终会走到 `rt_vsnprintf` 的封装。
 > 需要输出小数 → 调 `fmt_fixed2()`,或手写 `"%d.%02d"` 整数拆分。