zhunk 1 年之前
父節點
當前提交
4fe62aba6e

+ 1 - 1
Application_cbd_apm32f1/applications/control.h

@@ -25,7 +25,7 @@
 
 ////////////////////////////////////////////////////////////////
 
-#define VERSION  "2.5.7"
+#define VERSION  "2.5.8"
 
 
 extern rt_event_t event_485_play;

+ 3 - 2
Application_cbd_apm32f1/applications/hmi.c

@@ -330,6 +330,7 @@ static void HMI_Decode(void)
             HMI_WRITE("menu.build.txt=\"%s\"",device_status.driver_compile);
             //更新熄屏时间
             if(device_status.thsp<60) device_status.thsp = device_status.thsp * 60;
+                if(device_status.thsp==0) device_status.thsp = 300;
                 HMI_WRITE("thsp=%d",device_status.thsp);
         }
 
@@ -1011,8 +1012,8 @@ void Check_ParamConfig(void)
         device_status.heatvalue=100;//加热温度
         device_status.thsp = 300;       //默认熄屏时间5分钟
         device_status.sunBar = 9;       //光控定时时长
-        device_status.startBar = 20;    //定时开始时间
-        device_status.stopBar  = 0;     //定时结束时间
+        device_status.startBar = 9;    //定时开始时间
+        device_status.stopBar  = 17;     //定时结束时间
         device_status.tph = 70;         //高温保护阈值
         device_status.tpl = 5;          //低温保护阈值
         device_status.shake_ws = 1;     //震动开关,默认开

+ 7 - 0
Application_cbd_apm32f1/applications/sht30_collect.c

@@ -171,6 +171,13 @@ static void sht30_collect_thread_entry(void *parameter)
                 checknightnum = 0;
             }
         }
+        //异常处理,参数丢失
+        if(device_status.tph==0){
+            device_status.tph = 70;
+            device_status.tpl = 5;
+            device_status.startBar = 9;    //定时开始时间
+            device_status.stopBar  = 17;     //定时结束时间
+        }
         //温控
         if(atoi(device_status.tempture)>=device_status.tph||atoi(device_status.tempture)<=device_status.tpl)
         {

+ 4 - 0
Application_cbd_apm32f1/readme.md

@@ -1,3 +1,7 @@
+# 2025-10-29 更新说明
+	版本:2.5.8
+	1. 解决Flash参数丢失导致,温控,屏幕熄屏时间为0;
+		放电导致;
 # 2025-09-04 更新说明
 	版本:2.5.7
 	1. 修复诱虫次数没有清零;