Skip to content

Commit cd31c4e

Browse files
committed
wip
1 parent ad60f5b commit cd31c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static void ets_printf_P(const char *str, ...) {
8383
}
8484

8585
#define FAKE_REASON_NONE 255
86-
#define FAKE_REASON_USER 254
86+
#define FAKE_REASON_USER 254
8787
static int fake_rst_reason = FAKE_REASON_NONE;
8888

8989
void __wrap_system_restart_local() {
@@ -232,7 +232,7 @@ static void uart1_write_char_d(char c) {
232232

233233
static void raise_exception() {
234234
__asm__ __volatile__ ("syscall"); // no effect?
235-
ets_printf_P("\nsoftware exception");
235+
ets_printf_P(PSTR("\nsoftware exception"));
236236
fake_rst_reason = FAKE_REASON_USER;
237237
__wrap_system_restart_local();
238238
while (1); // never reached, needed to satisfy "noreturn" attribute

0 commit comments

Comments
 (0)