1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-423 Fix issue with init not properly started in the right order endup up object thinking other where not init.

This commit is contained in:
Mathieu Rondonneau 2011-06-18 17:28:37 -07:00
parent 506125af14
commit 5e3e7cc4e3
2 changed files with 5 additions and 2 deletions

View File

@ -90,6 +90,10 @@ int main()
*/
initcall_t *fn;
int32_t ret;
/* this one needs to be done first */
SystemModInitialize();
for (fn = __module_initcall_start; fn < __module_initcall_end; fn++)
ret = (*fn)();
@ -102,7 +106,7 @@ int main()
vTaskStartScheduler();
#endif
return 0;
return 0;
}
/**

View File

@ -87,7 +87,6 @@ static void systemTask(void *parameters);
* Initialise the module, called on startup.
* \returns 0 on success or -1 if initialisation failed
*/
module_initcall(SystemModInitialize, 0);
int32_t SystemModInitialize(void)
{
// Initialize vars