1
0
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:
zedamota 2011-05-01 20:10:27 +01:00
parent 3d209f2166
commit 5dd8a3eea2
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -110,7 +110,7 @@ void OpenPilotInit()
PIOS_Board_Init();
#if ERASE_FLASH
#ifdef ERASE_FLASH
PIOS_Flash_W25X_EraseChip();
#endif