mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Disable GPS by default on smaller Sizes
This commit is contained in:
parent
44d249f054
commit
e9083db022
2 changed files with 5 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -756,7 +756,11 @@ ifeq ($(DEBUG),GDB)
|
||||||
OPTIMIZE = -O0
|
OPTIMIZE = -O0
|
||||||
LTO_FLAGS = $(OPTIMIZE)
|
LTO_FLAGS = $(OPTIMIZE)
|
||||||
else
|
else
|
||||||
|
ifeq ($(TARGET),$(filter $(TARGET),$(F1_TARGETS)))
|
||||||
OPTIMIZE = -Os
|
OPTIMIZE = -Os
|
||||||
|
else
|
||||||
|
OPTIMIZE = -Ofast
|
||||||
|
endif
|
||||||
LTO_FLAGS = -flto -fuse-linker-plugin $(OPTIMIZE)
|
LTO_FLAGS = -flto -fuse-linker-plugin $(OPTIMIZE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#define STM_FAST_TARGET
|
#define STM_FAST_TARGET
|
||||||
#define USE_DSHOT
|
#define USE_DSHOT
|
||||||
#define I2C3_OVERCLOCK true
|
#define I2C3_OVERCLOCK true
|
||||||
|
#define GPS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STM32F3
|
#ifdef STM32F3
|
||||||
|
@ -70,7 +71,6 @@
|
||||||
|
|
||||||
#if (FLASH_SIZE > 64)
|
#if (FLASH_SIZE > 64)
|
||||||
#define BLACKBOX
|
#define BLACKBOX
|
||||||
#define GPS
|
|
||||||
#define TELEMETRY
|
#define TELEMETRY
|
||||||
#define TELEMETRY_FRSKY
|
#define TELEMETRY_FRSKY
|
||||||
#define TELEMETRY_HOTT
|
#define TELEMETRY_HOTT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue