Prechádzať zdrojové kódy

打开RTU定时重启

zhunk 2 rokov pred
rodič
commit
42fc760521

+ 1 - 0
Application_CBD/applications/dtu_uart2.c

@@ -1203,6 +1203,7 @@ int parseDtu(char *json_string)
                   {
                   {
                       ctr_led(ON);
                       ctr_led(ON);
                   }
                   }
+                  //{"ext": {"type": "led_off"}, "cmd": "ctrl"}
                   else if (strstr(type->valuestring,"led_off")!=RT_NULL)
                   else if (strstr(type->valuestring,"led_off")!=RT_NULL)
                   {
                   {
                       ctr_led(OFF);
                       ctr_led(OFF);

+ 1 - 1
Application_CBD/applications/hmi.c

@@ -1437,7 +1437,7 @@ static void Ctr_Mortor_entry(void* parameter)
             ctr_Color_board(OPEN, 1000);
             ctr_Color_board(OPEN, 1000);
         }
         }
         #endif
         #endif
-        #if 0
+        #if 1
         time_t time_reset12V;
         time_t time_reset12V;
         time(&time_reset12V);
         time(&time_reset12V);
         static struct tm alarm_reset12V;
         static struct tm alarm_reset12V;