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:
parent
506125af14
commit
5e3e7cc4e3
@ -90,6 +90,10 @@ int main()
|
|||||||
*/
|
*/
|
||||||
initcall_t *fn;
|
initcall_t *fn;
|
||||||
int32_t ret;
|
int32_t ret;
|
||||||
|
|
||||||
|
/* this one needs to be done first */
|
||||||
|
SystemModInitialize();
|
||||||
|
|
||||||
for (fn = __module_initcall_start; fn < __module_initcall_end; fn++)
|
for (fn = __module_initcall_start; fn < __module_initcall_end; fn++)
|
||||||
ret = (*fn)();
|
ret = (*fn)();
|
||||||
|
|
||||||
@ -102,7 +106,7 @@ int main()
|
|||||||
vTaskStartScheduler();
|
vTaskStartScheduler();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,7 +87,6 @@ static void systemTask(void *parameters);
|
|||||||
* Initialise the module, called on startup.
|
* Initialise the module, called on startup.
|
||||||
* \returns 0 on success or -1 if initialisation failed
|
* \returns 0 on success or -1 if initialisation failed
|
||||||
*/
|
*/
|
||||||
module_initcall(SystemModInitialize, 0);
|
|
||||||
int32_t SystemModInitialize(void)
|
int32_t SystemModInitialize(void)
|
||||||
{
|
{
|
||||||
// Initialize vars
|
// Initialize vars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user