Skip to content

Commit

Permalink
Merge pull request #7066 from mhightower83/pr-postmortem-offset-update
Browse files Browse the repository at this point in the history
Updated stack offsets for postmortem stack dump.
  • Loading branch information
earlephilhower authored Feb 8, 2020
2 parents a8515a7 + f45da1c commit 50a491b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cores/esp8266/core_esp8266_postmortem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void ets_printf_P(const char *str, ...) {
vsnprintf(destStr, sizeof(destStr), str, argPtr);
va_end(argPtr);
while (*c) {
ets_putc(*(c++));
ets_uart_putc1(*(c++));
}
}

Expand Down Expand Up @@ -147,10 +147,10 @@ void __wrap_system_restart_local() {
// (determined empirically, might break)
uint32_t offset = 0;
if (rst_info.reason == REASON_SOFT_WDT_RST) {
offset = 0x1b0;
offset = 0x1a0;
}
else if (rst_info.reason == REASON_EXCEPTION_RST) {
offset = 0x1a0;
offset = 0x190;
}
else if (rst_info.reason == REASON_WDT_RST) {
offset = 0x10;
Expand Down

0 comments on commit 50a491b

Please sign in to comment.