mirror of
https://github.com/ok-home/ota_ws_update.git
synced 2025-11-13 22:03:27 +03:00
preencrypted EMBED_TEXTFILES
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user