mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
Fix to erase option. Erase must be performed after board initialization.
This commit is contained in:
parent
8dd46e1465
commit
3d209f2166
@ -85,10 +85,6 @@ int main()
|
||||
/* Brings up System using CMSIS functions, enables the LEDs. */
|
||||
PIOS_SYS_Init();
|
||||
|
||||
#if ERASE_FLASH
|
||||
PIOS_Flash_W25X_EraseChip();
|
||||
#endif
|
||||
|
||||
/* Initialize the system thread */
|
||||
SystemModInitialize();
|
||||
|
||||
@ -114,6 +110,10 @@ void OpenPilotInit()
|
||||
|
||||
PIOS_Board_Init();
|
||||
|
||||
#if ERASE_FLASH
|
||||
PIOS_Flash_W25X_EraseChip();
|
||||
#endif
|
||||
|
||||
/* Initialize modules */
|
||||
InitModules();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user