1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 01:05:21 +03:00

Fix bug in MPU6500 accelerometer detection

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2018-03-16 18:52:01 +10:00
parent 954210b838
commit a4229fd788

View file

@ -56,7 +56,7 @@ bool mpu6500AccDetect(accDev_t *acc)
}
mpuContextData_t * ctx = busDeviceGetScratchpadMemory(acc->busDev);
if (ctx->chipMagicNumber != 0x6860) {
if (ctx->chipMagicNumber != 0x6500) {
return false;
}
@ -158,7 +158,7 @@ bool mpu6500GyroDetect(gyroDev_t *gyro)
return false;
}
// Magic number for ACC detection to indicate that we have detected MPU6000 gyro
// Magic number for ACC detection to indicate that we have detected MPU6500 gyro
mpuContextData_t * ctx = busDeviceGetScratchpadMemory(gyro->busDev);
ctx->chipMagicNumber = 0x6500;