mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02: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:
@@ -229,6 +229,8 @@ static void IRAM_ATTR do_core_init(void)
|
|||||||
esp_flash_encryption_init_checks();
|
esp_flash_encryption_init_checks();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
esp_err_t err;
|
||||||
|
|
||||||
#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
|
#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
|
||||||
err = esp_efuse_disable_rom_download_mode();
|
err = esp_efuse_disable_rom_download_mode();
|
||||||
assert(err == ESP_OK && "Failed to 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();
|
esp_efuse_disable_basic_rom_console();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
esp_err_t err;
|
|
||||||
|
|
||||||
esp_timer_init();
|
esp_timer_init();
|
||||||
esp_set_time_from_rtc();
|
esp_set_time_from_rtc();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user