Skip to content

Commit c943516

Browse files
committed
esp_system: fix compilation error when security features are enabled
affects CONFIG_SECURE_DISABLE_ROM_DL_MODE, CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
1 parent c627a1b commit c943516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/esp_system/startup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ static void IRAM_ATTR do_core_init(void)
229229
esp_flash_encryption_init_checks();
230230
#endif
231231

232+
esp_err_t err;
233+
232234
#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
233235
err = esp_efuse_disable_rom_download_mode();
234236
assert(err == ESP_OK && "Failed to disable ROM download mode");
@@ -243,8 +245,6 @@ static void IRAM_ATTR do_core_init(void)
243245
esp_efuse_disable_basic_rom_console();
244246
#endif
245247

246-
esp_err_t err;
247-
248248
esp_timer_init();
249249
esp_set_time_from_rtc();
250250

0 commit comments

Comments
 (0)