Bladeren bron

打开RTU定时重启

zhunk 2 jaren geleden
bovenliggende
commit
42fc760521
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1 0
      Application_CBD/applications/dtu_uart2.c
  2. 1 1
      Application_CBD/applications/hmi.c

+ 1 - 0
Application_CBD/applications/dtu_uart2.c

@@ -1203,6 +1203,7 @@ int parseDtu(char *json_string)
                   {
                       ctr_led(ON);
                   }
+                  //{"ext": {"type": "led_off"}, "cmd": "ctrl"}
                   else if (strstr(type->valuestring,"led_off")!=RT_NULL)
                   {
                       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);
         }
         #endif
-        #if 0
+        #if 1
         time_t time_reset12V;
         time(&time_reset12V);
         static struct tm alarm_reset12V;