diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-04-09 20:23:01 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-04-09 20:23:01 -0400 |
| commit | d633928a160ee029fa1a16f10e62f6628020aaef (patch) | |
| tree | 493263802a626c996d677bf511d297ff91af64c5 /main.c | |
| parent | 5015036c06e12c158ca0b36a23fade8da6fbbf07 (diff) | |
Don't let a background task call run_background_tasks()
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -43,6 +43,7 @@ #include "lib/mp-readline/readline.h" #include "lib/utils/pyexec.h" +#include "background.h" #include "mpconfigboard.h" #include "shared-module/displayio/__init__.h" #include "supervisor/cpu.h" @@ -86,6 +87,8 @@ void start_mp(supervisor_allocation* heap) { reset_status_led(); autoreload_stop(); + background_tasks_reset(); + // Stack limit should be less than real stack size, so we have a chance // to recover from limit hit. (Limit is measured in bytes.) mp_stack_ctrl_init(); |
