mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
stable initial OTA!
This commit is contained in:
@@ -102,13 +102,15 @@ void app_main()
|
||||
wifi_manager_set_callback(WIFI_EVENT_STA_DISCONNECTED, &cb_connection_sta_disconnected);
|
||||
|
||||
char * fwurl = get_nvs_value_alloc(NVS_TYPE_STR, "fwurl");
|
||||
if(fwurl){
|
||||
if(fwurl && strlen(fwurl)>0){
|
||||
while(!bWifiConnected){
|
||||
wait_for_wifi();
|
||||
}
|
||||
ESP_LOGI(TAG,"Updating firmware from link: %s",fwurl);
|
||||
start_ota(fwurl);
|
||||
}
|
||||
|
||||
console_start();
|
||||
else
|
||||
{
|
||||
console_start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user