mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
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:
parent
c627a1b6a0
commit
c943516c96
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user