Skip to content

Commit 50a491b

Browse files
Merge pull request #7066 from mhightower83/pr-postmortem-offset-update
Updated stack offsets for postmortem stack dump.
2 parents a8515a7 + f45da1c commit 50a491b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static void ets_printf_P(const char *str, ...) {
8989
vsnprintf(destStr, sizeof(destStr), str, argPtr);
9090
va_end(argPtr);
9191
while (*c) {
92-
ets_putc(*(c++));
92+
ets_uart_putc1(*(c++));
9393
}
9494
}
9595

@@ -147,10 +147,10 @@ void __wrap_system_restart_local() {
147147
// (determined empirically, might break)
148148
uint32_t offset = 0;
149149
if (rst_info.reason == REASON_SOFT_WDT_RST) {
150-
offset = 0x1b0;
150+
offset = 0x1a0;
151151
}
152152
else if (rst_info.reason == REASON_EXCEPTION_RST) {
153-
offset = 0x1a0;
153+
offset = 0x190;
154154
}
155155
else if (rst_info.reason == REASON_WDT_RST) {
156156
offset = 0x10;

0 commit comments

Comments
 (0)