1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01: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();
#endif
SystemModStart();
objectPersistenceQueue = xQueueCreate(1, sizeof(UAVObjEvent));
if (objectPersistenceQueue == NULL)
return -1;
SystemModStart();
return 0;
}