diff --git a/src/main/target/FLYCOLORF7/target.h b/src/main/target/FLYCOLORF7/target.h index 7c27d4bf42..38b348b69f 100644 --- a/src/main/target/FLYCOLORF7/target.h +++ b/src/main/target/FLYCOLORF7/target.h @@ -31,6 +31,8 @@ #define USE_GYRO_SPI_MPU6000 #define USE_FLASH #define USE_FLASH_W25Q128FV +#define USE_BARO +#define USE_BARO_BMP280 #define USE_MAX7456 #define USE_VCP @@ -105,6 +107,7 @@ #define USE_I2C_DEVICE_1 #define I2C_DEVICE_1 (I2CDEV_1) #define MAG_I2C_INSTANCE (I2CDEV_1) +#define BARO_I2C_INSTANCE (I2CDEV_1) #define I2C1_SCL PB6 #define I2C1_SDA PB7 diff --git a/src/main/target/FLYCOLORF7/target.mk b/src/main/target/FLYCOLORF7/target.mk index de71ac0a2e..b4531fc3fe 100644 --- a/src/main/target/FLYCOLORF7/target.mk +++ b/src/main/target/FLYCOLORF7/target.mk @@ -3,6 +3,7 @@ FEATURES += VCP ONBOARDFLASH TARGET_SRC = \ drivers/accgyro/accgyro_spi_mpu6000.c \ +drivers/barometer/barometer_bmp280.c \ $(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \ drivers/light_led.h \ drivers/light_ws2811strip.c \