fixed reset after OTA, added gsm level
This commit is contained in:
parent
369b236549
commit
65b977f089
|
|
@ -233,9 +233,8 @@ esp_err_t my_esp_https_ota(const esp_http_client_config_t *config)
|
|||
strcpy(FwUpdStatus, "<span class='clok'>Updated ok. Restart...</span>");
|
||||
if (GetSysConf()->Flags1.bIsResetOTAEnabled)
|
||||
{
|
||||
ESP_LOGW(TAG, "Erasing NVS partition...");
|
||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||
ESP_ERROR_CHECK(nvs_flash_init());
|
||||
ESP_ERROR_CHECK(ResetInitSysConfig());
|
||||
}
|
||||
ESP_LOGI(TAG, "Firmware now restarting...");
|
||||
vTaskDelay(pdMS_TO_TICKS(3000));
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ static void funct_wifi_level(char *argres, int rw)
|
|||
{
|
||||
wifi_ap_record_t wifi;
|
||||
if (esp_wifi_sta_get_ap_info(&wifi) == ESP_OK)
|
||||
snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"%ddBm\"", wifi.rssi);
|
||||
snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"%d dBm\"", wifi.rssi);
|
||||
else
|
||||
snprintf(argres, VAR_MAX_VALUE_LENGTH, "\"-\"");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user