mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
30s reboot delay
This commit is contained in:
@@ -92,10 +92,11 @@ static void * squeezelite_thread(){
|
|||||||
ESP_LOGV(TAG ,"Freeing argv pointer");
|
ESP_LOGV(TAG ,"Freeing argv pointer");
|
||||||
free(thread_parms.argv);
|
free(thread_parms.argv);
|
||||||
isRunning=false;
|
isRunning=false;
|
||||||
ESP_LOGE(TAG, "Exited from squeezelite thread, something's wrong ... rebooting");
|
ESP_LOGE(TAG, "Exited from squeezelite thread, something's wrong ... rebooting (wait 30s for user to take action)");
|
||||||
if(!wait_for_commit()){
|
if(!wait_for_commit()){
|
||||||
ESP_LOGW(TAG,"Unable to commit configuration. ");
|
ESP_LOGW(TAG,"Unable to commit configuration. ");
|
||||||
}
|
}
|
||||||
|
vTaskDelay( pdMS_TO_TICKS( 30*1000 ) );
|
||||||
esp_restart();
|
esp_restart();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user