From c943516c9652613e618de103c7044b5dfae419ec Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 17 Jul 2020 19:14:22 +0200 Subject: [PATCH] esp_system: fix compilation error when security features are enabled affects CONFIG_SECURE_DISABLE_ROM_DL_MODE, CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE --- components/esp_system/startup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_system/startup.c b/components/esp_system/startup.c index 05d74b6470..d1c8f06c18 100644 --- a/components/esp_system/startup.c +++ b/components/esp_system/startup.c @@ -229,6 +229,8 @@ static void IRAM_ATTR do_core_init(void) esp_flash_encryption_init_checks(); #endif + esp_err_t err; + #if CONFIG_SECURE_DISABLE_ROM_DL_MODE err = esp_efuse_disable_rom_download_mode(); assert(err == ESP_OK && "Failed to disable ROM download mode"); @@ -243,8 +245,6 @@ static void IRAM_ATTR do_core_init(void) esp_efuse_disable_basic_rom_console(); #endif - esp_err_t err; - esp_timer_init(); esp_set_time_from_rtc();