AP_Compass: fixed shift typo

this doesn't affect LE MCUs like STM32
This commit is contained in:
Andrew Tridgell 2017-06-13 21:08:57 +10:00
parent f8ee82e708
commit fa3d40af8a

View File

@ -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,