From 9865466da9ddc556d645cc5a93c17f9463d48f41 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Tue, 24 Jul 2012 09:51:03 -0500 Subject: [PATCH] Make sure to create the system queue BEFORE calling task start. Systemmod initializes differently than other threads and I missed htat. Huge thanks to Hyper for making me realize that despite the fact I didn't see it :D. --- flight/Modules/System/systemmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/Modules/System/systemmod.c b/flight/Modules/System/systemmod.c index 005a0c565..33bf462fb 100644 --- a/flight/Modules/System/systemmod.c +++ b/flight/Modules/System/systemmod.c @@ -123,12 +123,12 @@ int32_t SystemModInitialize(void) WatchdogStatusInitialize(); #endif - SystemModStart(); - objectPersistenceQueue = xQueueCreate(1, sizeof(UAVObjEvent)); if (objectPersistenceQueue == NULL) return -1; + SystemModStart(); + return 0; }