zhunk 4 месяцев назад
Родитель
Сommit
3b7a59098e

+ 2 - 2
Application_cbd_apm32f1/applications/control.h

@@ -16,11 +16,11 @@
 //定制相关//////////////////////////////////////////////////////
 
 #define SENSOR_EN        0            //温湿度:0关闭,1打开
-#define RPS_EN           0            //雨控检测:0关闭,1打开
+#define RPS_EN           1            //雨控检测:0关闭,1打开
 #define ROBOT_EN         0            //定时重启:0关闭,1打开
 ////////////////////////////////////////////////////////////////
 
-#define VERSION  "3.7.6"
+#define VERSION  "3.8.6"
 
 extern rt_event_t event_485_play;
 

+ 5 - 0
Application_cbd_apm32f1/applications/dtu_uart2.c

@@ -754,6 +754,11 @@ char * makeJson()
     //cv 充电电压 单位:V 字符串类型
     cJSON_AddStringToObject(pSubJson,"cv",device_status.voltage_sun);
     //volt_ct电击计数值
+    if(device_status.dattim==60){
+        if(device_status.all_ycct>=10){
+            device_status.all_ycct = device_status.all_ycct / 10;
+        }
+    }
     rt_sprintf(utos, "%d",device_status.all_ycct);
     cJSON_AddStringToObject(pSubJson,"volt_ct",utos);
 

+ 4 - 0
Application_cbd_apm32f1/readme.md

@@ -1,3 +1,7 @@
+# 2026-06-25 更新说明
+	#版本:3.8.6
+	1、开启雨控检测,设备带雨控
+	2、优化计数,解决一定时间内频繁计数的问题
 # 2026-06-04 更新说明
 	#版本:3.7.6
 	1、关闭雨控检测,优化雨控检测逻辑,增加消抖;