esp_system: fix compilation error when security features are enabled

affects CONFIG_SECURE_DISABLE_ROM_DL_MODE, CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
This commit is contained in:
Ivan Grokhotkov 2020-07-17 19:14:22 +02:00
parent c627a1b6a0
commit c943516c96

View File

@ -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();