mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
esp_https_ota: rename config option for more clarity
This commit is contained in:
committed by
Harshit Malpani
parent
7fd2d5ea03
commit
fbc9c729b2
4
components/esp_https_ota/sdkconfig.rename
Normal file
4
components/esp_https_ota/sdkconfig.rename
Normal file
@@ -0,0 +1,4 @@
|
||||
# sdkconfig replacement configurations for deprecated options formatted as
|
||||
# CONFIG_DEPRECATED_OPTION CONFIG_NEW_OPTION
|
||||
|
||||
CONFIG_OTA_ALLOW_HTTP CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP
|
||||
@@ -209,8 +209,8 @@ esp_err_t esp_https_ota_begin(esp_https_ota_config_t *ota_config, esp_https_ota_
|
||||
}
|
||||
|
||||
if (!is_server_verification_enabled(ota_config)) {
|
||||
#if CONFIG_OTA_ALLOW_HTTP
|
||||
ESP_LOGW(TAG, "Continuing with insecure option because CONFIG_OTA_ALLOW_HTTP is set.");
|
||||
#if CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP
|
||||
ESP_LOGW(TAG, "Continuing with insecure option because CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP is set.");
|
||||
#else
|
||||
ESP_LOGE(TAG, "No option for server verification is enabled in esp_http_client config.");
|
||||
*handle = NULL;
|
||||
|
||||
Reference in New Issue
Block a user