summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-04-09 20:23:01 -0400
committerDan Halbert <halbert@halwitz.org>2019-04-09 20:23:01 -0400
commitd633928a160ee029fa1a16f10e62f6628020aaef (patch)
tree493263802a626c996d677bf511d297ff91af64c5 /main.c
parent5015036c06e12c158ca0b36a23fade8da6fbbf07 (diff)
Don't let a background task call run_background_tasks()
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 77498d7de..3b7e90a7a 100755
--- a/main.c
+++ b/main.c
@@ -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();