Skip to content

Commit

Permalink
bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_S…
Browse files Browse the repository at this point in the history
…ILENT is set

Closes #7518
  • Loading branch information
ESP-Marius committed Sep 2, 2022
1 parent 779d880 commit a77dce6
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 a77dce6

Please sign in to comment.