preencrypted EMBED_TEXTFILES

This commit is contained in:
ok-home
2023-10-04 09:22:53 +07:00
committed by GitHub
parent 1a44129e73
commit 9bd7703d05
3 changed files with 10 additions and 4 deletions

View File

@@ -171,13 +171,14 @@ static esp_err_t ota_ws_handler(httpd_req_t *req)
}
if (strncmp(json_key, OTA_PROCESS_ROLLBACK, sizeof(OTA_PROCESS_ROLLBACK)) == 0) // process rollback &
{
ESP_LOGI(TAG,"rollback command %s %s",json_key,json_value);
if(strncmp(json_value,"true",sizeof("true")) == 0)
{
ESP_LOGI(TAG,"Rollback and restart");
ret = rollback_ota_ws(true); // rollback and restart
}
else
{
ESP_LOGI(TAG,"App veryfied, fix ota update");
ret = rollback_ota_ws(false); // app veryfied
}
goto _recv_ret;