mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +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)
|
||||
CDEFS += -DUSE_BOOTLOADER
|
||||
endif
|
||||
|
||||
ifeq ($(ERASE_FLASH), YES)
|
||||
CDEFS += -DERASE_FLASH
|
||||
endif
|
||||
ifeq ($(USE_SPEKTRUM), YES)
|
||||
CDEFS += -DUSE_SPEKTRUM
|
||||
endif
|
||||
|
@ -110,7 +110,7 @@ void OpenPilotInit()
|
||||
|
||||
PIOS_Board_Init();
|
||||
|
||||
#if ERASE_FLASH
|
||||
#ifdef ERASE_FLASH
|
||||
PIOS_Flash_W25X_EraseChip();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user