From 28ac515064344be9e75179ea01a284f11ce1b858 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Fri, 19 Apr 2013 15:39:12 +0200 Subject: [PATCH] moved Callback Scheduler startup in front of module task startup --- flight/Modules/System/systemmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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