1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-04-10 02:02:21 +02:00

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.
This commit is contained in:
James Cotton 2012-07-24 09:51:03 -05:00
parent c0c5da69aa
commit f9eb82478b

View File

@ -123,12 +123,12 @@ int32_t SystemModInitialize(void)
WatchdogStatusInitialize(); WatchdogStatusInitialize();
#endif #endif
SystemModStart();
objectPersistenceQueue = xQueueCreate(1, sizeof(UAVObjEvent)); objectPersistenceQueue = xQueueCreate(1, sizeof(UAVObjEvent));
if (objectPersistenceQueue == NULL) if (objectPersistenceQueue == NULL)
return -1; return -1;
SystemModStart();
return 0; return 0;
} }