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:
parent
954210b838
commit
a4229fd788
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue