Skip to content

Commit

Permalink
Use mgos_cd_printf to print stack overflow message
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Dec 13, 2020
1 parent a5f5912 commit 3fcfcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/esp8266/src/esp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static void mgos_task(os_event_t *e) {
cb((void *) e->par);
/* Check for stack overflow. */
if (*MGOS_STACK_CANARY_LOC != MGOS_STACK_CANARY_VAL) {
LOG(LL_ERROR, ("Stack overflow! Last cb %p", cb));
mgos_cd_printf("Stack overflow! Last cb %p\n", cb);
/* This is not yet fatal but ptobably should be. */
// abort();
}
Expand Down

0 comments on commit 3fcfcb7

Please sign in to comment.