summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-04-09 18:39:28 -0700
committerGitHub <noreply@github.com>2019-04-09 18:39:28 -0700
commitac2fd2fa80e34554c799e363541a93a0976e4f4f (patch)
treedb8efabe8d067036173759be1be1f2bcbbbad24d /main.c
parentfc9cb038c41aa7712cbfadbf98ae4129d84852ba (diff)
parentd633928a160ee029fa1a16f10e62f6628020aaef (diff)
Merge pull request #1773 from dhalbert/no-recursive-background-tasks
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 dc47a70de..f7b289776 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"
@@ -89,6 +90,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();