diff --git a/flight/Modules/System/systemmod.c b/flight/Modules/System/systemmod.c index 90eb8e127..a64055172 100644 --- a/flight/Modules/System/systemmod.c +++ b/flight/Modules/System/systemmod.c @@ -148,12 +148,12 @@ MODULE_INITCALL(SystemModInitialize, 0) */ static void systemTask(void *parameters) { - /* create all modules thread */ - MODULE_TASKCREATE_ALL; - /* start the delayed callback scheduler */ CallbackSchedulerStart(); + /* create all modules thread */ + MODULE_TASKCREATE_ALL; + if (mallocFailed) { /* We failed to malloc during task creation, * system behaviour is undefined. Reset and let