mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Move the PIOS_Settings_Load() call to the main() function. Easier to see program flow this way as it is a key part of our startup.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@85 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
b888eb3813
commit
fb54cca9e9
@ -62,12 +62,7 @@ void PIOS_SYS_Init(void)
|
||||
for(int i = 0; i < 1000; i++);
|
||||
PIOS_LED_Toggle(LED1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Call LoadSettings which populates System Vars */
|
||||
/* Settings can not be loaded before this point */
|
||||
PIOS_Settings_Load();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,10 +53,13 @@ int main()
|
||||
{
|
||||
|
||||
/* Brings up System using CMSIS functions,
|
||||
enables the LEDs and mounts the SDCard,
|
||||
loads global systems settings. */
|
||||
enables the LEDs and mounts the SDCard. */
|
||||
PIOS_SYS_Init();
|
||||
|
||||
/* Call LoadSettings which populates System Vars
|
||||
so the rest of the hardware can be configured. */
|
||||
PIOS_Settings_Load();
|
||||
|
||||
/* Com ports init */
|
||||
PIOS_COM_Init();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user