mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Compass: fixed shift typo
this doesn't affect LE MCUs like STM32
This commit is contained in:
parent
f8ee82e708
commit
fa3d40af8a
@ -249,7 +249,7 @@ void AP_Compass_BMM150::_update()
|
||||
return;
|
||||
}
|
||||
|
||||
const uint16_t rhall = le16toh(data[3] >> 2);
|
||||
const uint16_t rhall = le16toh(data[3]) >> 2;
|
||||
|
||||
Vector3f raw_field = Vector3f{
|
||||
(float) _compensate_xy(((int16_t)le16toh(data[0])) >> 3,
|
||||
|
Loading…
Reference in New Issue
Block a user