mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Fix BMI160 gate and optimize directives (#13237)
* Add BMI160 gate and other defines * Fix make test * Remove redundant directives
This commit is contained in:
parent
c996d5f77b
commit
2ee519e29c
2 changed files with 10 additions and 20 deletions
|
@ -240,7 +240,7 @@ retry:
|
|||
case ACC_ICM20608G:
|
||||
#if defined(USE_ACC_MPU6500) || defined(USE_ACC_SPI_MPU6500)
|
||||
#ifdef USE_ACC_SPI_MPU6500
|
||||
if (mpu6500AccDetect(dev) || mpu6500SpiAccDetect(dev)) {
|
||||
if (mpu6500SpiAccDetect(dev)) {
|
||||
#else
|
||||
if (mpu6500AccDetect(dev)) {
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue