mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +01:00
Fix a silly mistake on the CC erase_flash compile flag.
This commit is contained in:
parent
3d209f2166
commit
5dd8a3eea2
@ -392,7 +392,9 @@ endif
|
|||||||
ifeq ($(USE_BOOTLOADER), YES)
|
ifeq ($(USE_BOOTLOADER), YES)
|
||||||
CDEFS += -DUSE_BOOTLOADER
|
CDEFS += -DUSE_BOOTLOADER
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(ERASE_FLASH), YES)
|
||||||
|
CDEFS += -DERASE_FLASH
|
||||||
|
endif
|
||||||
ifeq ($(USE_SPEKTRUM), YES)
|
ifeq ($(USE_SPEKTRUM), YES)
|
||||||
CDEFS += -DUSE_SPEKTRUM
|
CDEFS += -DUSE_SPEKTRUM
|
||||||
endif
|
endif
|
||||||
|
@ -110,7 +110,7 @@ void OpenPilotInit()
|
|||||||
|
|
||||||
PIOS_Board_Init();
|
PIOS_Board_Init();
|
||||||
|
|
||||||
#if ERASE_FLASH
|
#ifdef ERASE_FLASH
|
||||||
PIOS_Flash_W25X_EraseChip();
|
PIOS_Flash_W25X_EraseChip();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user