We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4c03c commit e07960cCopy full SHA for e07960c
cores/esp8266/core_esp8266_postmortem.cpp
@@ -259,11 +259,9 @@ static void postmortem_report(uint32_t sp_dump) {
259
uint32_t stack_end;
260
261
// above and inside of cont, dump from the sp to the bottom of the stack
262
- if (rst_info.reason == REASON_USER_STACK_OVERFLOW) {
263
- ets_printf_P(PSTR("\nctx: cont\n"));
264
- stack_end = cont_stack_end;
265
- }
266
- else if (sp_dump > cont_stack_start && sp_dump < cont_stack_end) {
+ if ((rst_info.reason == REASON_USER_STACK_OVERFLOW)
+ || ((sp_dump > cont_stack_start) && (sp_dump < cont_stack_end)))
+ {
267
ets_printf_P(PSTR("\nctx: cont\n"));
268
stack_end = cont_stack_end;
269
}
0 commit comments