Update 2020-10-25

This commit is contained in:
jomjol
2020-10-25 19:56:22 +01:00
parent 1223aa7c70
commit 642cefb84f
16 changed files with 100 additions and 12 deletions

View File

@@ -402,8 +402,11 @@ void task_reboot(void *pvParameter)
void doReboot(){
LogFile.WriteToFile("Reboot - now");
xTaskCreate(&task_reboot, "reboot", configMINIMAL_STACK_SIZE * 64, NULL, 10, NULL);
KillTFliteTasks();
xTaskCreate(&task_reboot, "reboot", configMINIMAL_STACK_SIZE * 64, NULL, 10, NULL);
vTaskDelay(5000 / portTICK_PERIOD_MS);
esp_restart();
hard_restart();
}