Skip to content

Commit

Permalink
Merge branch 'bugfix/bootloader_assert' into 'master'
Browse files Browse the repository at this point in the history
bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set

Closes IDFGH-5811

See merge request espressif/esp-idf!19915
  • Loading branch information
ESP-Marius committed Sep 5, 2022
2 parents 681c538 + a77dce6 commit 326b6a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/bootloader_support/src/bootloader_panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

void __assert_func(const char *file, int line, const char *func, const char *expr)
{

#if !CONFIG_OPTIMIZATION_ASSERTIONS_SILENT
esp_rom_printf("Assert failed in %s, %s:%d (%s)\r\n", func, file, line, expr);
#endif

while (1) {
}
}
Expand Down

0 comments on commit 326b6a9

Please sign in to comment.