mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 11:48:48 +00:00
FreeRTOS
This commit is contained in:
@@ -119,9 +119,9 @@ void task2(void *pvParameters) {
|
||||
}
|
||||
|
||||
void task_restart(void *pvParameters) {
|
||||
printf("Restarting system in %d seconds...\n", cntdn);
|
||||
while (1) {
|
||||
vTaskDelay(cntdn * 1000); // Delay for 10 seconds
|
||||
printf("Restarting system in %d seconds...\n", cntdn);
|
||||
esp_restart();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user