1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Sparky 2.0 Accelerometer (fix mpu9250 detection)

This commit is contained in:
Maxim Strinzha 2017-02-20 16:07:01 +03:00
parent b240fb4c0f
commit 0dd699c5a7
5 changed files with 15 additions and 2 deletions

View file

@ -160,12 +160,22 @@ retry:
accHardware = ACC_MPU6000;
break;
}
#endif
; // fallthrough
case ACC_MPU9250:
#ifdef USE_ACC_SPI_MPU9250
if (mpu9250SpiAccDetect(dev)) {
#ifdef ACC_MPU9250_ALIGN
dev->accAlign = ACC_MPU9250_ALIGN;
#endif
accHardware = ACC_MPU9250;
break;
}
#endif
; // fallthrough
case ACC_MPU6500:
case ACC_ICM20608G:
case ACC_ICM20602:
case ACC_MPU9250:
#if defined(USE_ACC_MPU6500) || defined(USE_ACC_SPI_MPU6500)
#ifdef USE_ACC_SPI_MPU6500
if (mpu6500AccDetect(dev) || mpu6500SpiAccDetect(dev))