Skip to content

Commit e3c477e

Browse files
committed
wip
1 parent cd31c4e commit e3c477e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ static void uart1_write_char_d(char c) {
231231
}
232232

233233
static void raise_exception() {
234+
//*((char*)0) = 0; // <- works but with a bad reason
234235
__asm__ __volatile__ ("syscall"); // no effect?
235-
ets_printf_P(PSTR("\nsoftware exception"));
236+
236237
fake_rst_reason = FAKE_REASON_USER;
238+
ets_printf_P(PSTR("\nUser exception (panic/abort/assert)"));
237239
__wrap_system_restart_local();
240+
238241
while (1); // never reached, needed to satisfy "noreturn" attribute
239242
}
240243

0 commit comments

Comments
 (0)