1
0
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:
zedamota 2011-04-30 14:17:44 +01:00
parent 8dd46e1465
commit 3d209f2166

View File

@ -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();
}