mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 03:57:07 +03:00
commit NVS parameter on reboot - release
This commit is contained in:
@@ -102,6 +102,9 @@ esp_err_t guided_boot(esp_partition_subtype_t partition_subtype)
|
|||||||
#if RECOVERY_APPLICATION
|
#if RECOVERY_APPLICATION
|
||||||
if(partition_subtype ==ESP_PARTITION_SUBTYPE_APP_FACTORY){
|
if(partition_subtype ==ESP_PARTITION_SUBTYPE_APP_FACTORY){
|
||||||
ESP_LOGW(TAG,"RECOVERY application is already active");
|
ESP_LOGW(TAG,"RECOVERY application is already active");
|
||||||
|
if(!wait_for_commit()){
|
||||||
|
ESP_LOGW(TAG,"Unable to commit configuration. ");
|
||||||
|
}
|
||||||
ESP_LOGW(TAG, "Restarting after tx complete");
|
ESP_LOGW(TAG, "Restarting after tx complete");
|
||||||
uart_wait_tx_done(UART_NUM_1, 500 / portTICK_RATE_MS);
|
uart_wait_tx_done(UART_NUM_1, 500 / portTICK_RATE_MS);
|
||||||
esp_restart();
|
esp_restart();
|
||||||
@@ -110,6 +113,9 @@ esp_err_t guided_boot(esp_partition_subtype_t partition_subtype)
|
|||||||
#else
|
#else
|
||||||
if(partition_subtype !=ESP_PARTITION_SUBTYPE_APP_FACTORY){
|
if(partition_subtype !=ESP_PARTITION_SUBTYPE_APP_FACTORY){
|
||||||
ESP_LOGW(TAG,"SQUEEZELITE application is already active");
|
ESP_LOGW(TAG,"SQUEEZELITE application is already active");
|
||||||
|
if(!wait_for_commit()){
|
||||||
|
ESP_LOGW(TAG,"Unable to commit configuration. ");
|
||||||
|
}
|
||||||
ESP_LOGW(TAG, "Restarting after tx complete");
|
ESP_LOGW(TAG, "Restarting after tx complete");
|
||||||
uart_wait_tx_done(UART_NUM_1, 500 / portTICK_RATE_MS);
|
uart_wait_tx_done(UART_NUM_1, 500 / portTICK_RATE_MS);
|
||||||
esp_restart();
|
esp_restart();
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ void process_autoexec(){
|
|||||||
|
|
||||||
char * str_flag = config_alloc_get(NVS_TYPE_STR, "autoexec");
|
char * str_flag = config_alloc_get(NVS_TYPE_STR, "autoexec");
|
||||||
if(!bypass_wifi_manager){
|
if(!bypass_wifi_manager){
|
||||||
ESP_LOGW(TAG, "Procesing autoexec commands while wifi_manager active. Wifi related commands will be ignored.");
|
ESP_LOGW(TAG, "Processing autoexec commands while wifi_manager active. Wifi related commands will be ignored.");
|
||||||
}
|
}
|
||||||
#if RECOVERY_APPLICATION
|
#if RECOVERY_APPLICATION
|
||||||
ESP_LOGD(TAG, "Processing autoexec commands in recovery mode. Squeezelite commands will be ignored.");
|
ESP_LOGD(TAG, "Processing autoexec commands in recovery mode. Squeezelite commands will be ignored.");
|
||||||
|
|||||||
Reference in New Issue
Block a user