zhunk 4 месяцев назад
Родитель
Сommit
45645987db
2 измененных файлов с 11 добавлено и 0 удалено
  1. 9 0
      Application_CBD/applications/control.h
  2. 2 0
      Application_CBD/applications/hmi.c

+ 9 - 0
Application_CBD/applications/control.h

@@ -22,15 +22,24 @@
 #define DZ_250723        0              //触发雨控后隔天再解除
 #define DZ_260519        0              //进入工作后,每小时转一次仓
 #define DZ_260623_2      0              //中端款测报灯  每次工作前和雨控解除后  上下仓门打开 等待5分钟 清扫10次 关闭上下仓门 开始正常工作  假设8点开始正常工作 可能需要7点30或者35来执行这个动作
+#define DZ_260630_1      0              //针对屏幕自己触发时控时间修改的问题定制:禁用屏幕设置工作时间的功能(不处理屏幕设置时控时间的指令)
 ////////////////////////////////////////////////////////////////
 #if LAMP_EN == 1
     #define VERSION_HK          "1.(3ledV9).41(HK)"      //4.0海康-三色光源
     #define VERSION_HK_2000W    "1.3led0.40(2000W)"       //水稻
 #else
+#if DZ_260630_1 == 0
      #define VERSION_HK          "1.68.41(HK)"            //4.0海康-1200W
+#else
+    #define VERSION_HK          "1.68.41(HK-DZ260630_1)"  //4.0海康-1200W
+#endif
 #if DZ_260623_2 == 0
+#if DZ_260630_1 == 0
     #define VERSION_HK_2000W    "1.68.40(2000W)"         //4.0水稻
 #else
+    #define VERSION_HK_2000W    "1.68.40(2000W-DZ260630_1)"         //4.0水稻
+#endif
+#else
     #define VERSION_HK_2000W    "DZ_260623_2"         //4.0水稻
 #endif
 #endif

+ 2 - 0
Application_CBD/applications/hmi.c

@@ -949,6 +949,7 @@ static void HMI_Decode(void)
         }
     }
     //定时设置
+#if DZ_260630_1 == 0
     else if (strstr(rx_buffer,"saveClockSet=")!=NULL) {
         char value_str[10];
         memset(value_str,0,sizeof(value_str));
@@ -1109,6 +1110,7 @@ static void HMI_Decode(void)
         rt_free(var);
         rt_kprintf("工作时间参数已保存:模式-%d,光控时间-%d,时控开始时间-%d,时控结束时间-%d\n",device_status.timeSwitch,device_status.sunBar,device_status.startBar,device_status.stopBar);
     }
+#endif
     else if (strstr(rx_buffer,"saveSystemSet")!=NULL) {
             static char clt_time_str[3],heattime_str[3],heatvale_str[4],vol_str[4],thsp_str[5];
             static char value_temp[5];