From d633928a160ee029fa1a16f10e62f6628020aaef Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 9 Apr 2019 20:23:01 -0400 Subject: Don't let a background task call run_background_tasks() --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') 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(); -- cgit v1.2.3