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

Added MPU9250 ACC detection.

This commit is contained in:
Anders Hoglund 2016-08-09 14:52:22 +02:00
parent 8c3622eb3a
commit 1300952472
3 changed files with 25 additions and 10 deletions

View file

@ -384,6 +384,20 @@ retry:
}
#endif
; // fallthrough
case ACC_MPU9250:
#ifdef USE_ACC_SPI_MPU9250
if (mpu9250SpiAccDetect(&acc))
{
accHardware = ACC_MPU9250;
#ifdef ACC_MPU9250_ALIGN
accAlign = ACC_MPU9250_ALIGN;
#endif
break;
}
#endif
; // fallthrough
case ACC_FAKE:
#ifdef USE_FAKE_ACC
if (fakeAccDetect(&acc)) {