1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Check that at least one USE_ACC* definition is defined if USE_ACC is defined

This commit is contained in:
Steve Evans 2022-10-29 19:05:31 +01:00
parent 587491ddbd
commit 1025098194

View file

@ -86,6 +86,14 @@
#include "acceleration_init.h"
#if !defined(USE_ACC_MPU6500) && !defined(USE_ACC_SPI_MPU6000) && !defined(USE_ACC_SPI_MPU6500) && \
!defined(USE_ACC_SPI_ICM20689) && !defined(USE_ACCGYRO_LSM6DSO) && !defined(USE_ACCGYRO_BMI160) && \
!defined(USE_ACCGYRO_BMI270) && !defined(USE_ACC_SPI_ICM42605) && !defined(USE_ACC_SPI_ICM42688P) && \
!defined(USE_ACC_ADXL345) && !defined(USE_ACC_BMA280) && !defined(USE_ACC_LSM303DLHC) && \
!defined(USE_ACC_MMA8452) && !defined(USE_FAKE_ACC)
#error At least one USE_ACC device definition required
#endif
#define CALIBRATING_ACC_CYCLES 400
FAST_DATA_ZERO_INIT accelerationRuntime_t accelerationRuntime;