forked from espressif/esp-idf
bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set
Closes https://github.com/espressif/esp-idf/pull/7518
This commit is contained in:
@@ -12,7 +12,11 @@
|
|||||||
|
|
||||||
void __assert_func(const char *file, int line, const char *func, const char *expr)
|
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);
|
esp_rom_printf("Assert failed in %s, %s:%d (%s)\r\n", func, file, line, expr);
|
||||||
|
#endif
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user