diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-04-09 18:39:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-09 18:39:28 -0700 |
| commit | ac2fd2fa80e34554c799e363541a93a0976e4f4f (patch) | |
| tree | db8efabe8d067036173759be1be1f2bcbbbad24d /main.c | |
| parent | fc9cb038c41aa7712cbfadbf98ae4129d84852ba (diff) | |
| parent | d633928a160ee029fa1a16f10e62f6628020aaef (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-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" @@ -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(); |
