mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
Fix UI reboot to OTA/Recovery button - release
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "sdkconfig.h"
|
||||
|
||||
static const char * TAG = "platform_esp32";
|
||||
extern esp_err_t start_ota(const char * bin_url, bool bFromAppMain);
|
||||
extern esp_err_t start_ota(const char * bin_url);
|
||||
static struct {
|
||||
struct arg_str *url;
|
||||
struct arg_end *end;
|
||||
@@ -45,7 +45,7 @@ static int perform_ota_update(int argc, char **argv)
|
||||
|
||||
esp_err_t err=ESP_OK;
|
||||
ESP_LOGI(TAG, "Starting ota: %s", url);
|
||||
start_ota(url,false);
|
||||
start_ota(url);
|
||||
|
||||
if (err != ESP_OK) {
|
||||
ESP_LOGE(TAG, "%s", esp_err_to_name(err));
|
||||
|
||||
@@ -640,7 +640,7 @@ esp_err_t process_recovery_ota(const char * bin_url){
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t start_ota(const char * bin_url, bool bFromAppMain)
|
||||
esp_err_t start_ota(const char * bin_url)
|
||||
{
|
||||
// uint8_t * config_alloc_get_default(NVS_TYPE_BLOB, "certs", server_cert_pem_start , server_cert_pem_end-server_cert_pem_start);
|
||||
#if RECOVERY_APPLICATION
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define OTA_FLASH_ERASE_BLOCK (uint32_t)512000
|
||||
#define OTA_STACK_SIZE 5120
|
||||
#define OTA_TASK_PRIOTITY 6
|
||||
esp_err_t start_ota(const char * bin_url, bool bFromAppMain);
|
||||
esp_err_t start_ota(const char * bin_url);
|
||||
const char * ota_get_status();
|
||||
uint8_t ota_get_pct_complete();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user