1
0
Fork 0
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:
Mark Haslinghuis 2023-12-31 23:37:01 +01:00 committed by GitHub
parent c996d5f77b
commit 2ee519e29c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 20 deletions

View file

@ -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