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:
parent
587491ddbd
commit
1025098194
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue