Skip to content

Commit e07960c

Browse files
committed
ctx:cont duplicate code formatting
1 parent 5e4c03c commit e07960c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,9 @@ static void postmortem_report(uint32_t sp_dump) {
259259
uint32_t stack_end;
260260

261261
// 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) {
262+
if ((rst_info.reason == REASON_USER_STACK_OVERFLOW)
263+
|| ((sp_dump > cont_stack_start) && (sp_dump < cont_stack_end)))
264+
{
267265
ets_printf_P(PSTR("\nctx: cont\n"));
268266
stack_end = cont_stack_end;
269267
}

0 commit comments

Comments
 (0)