mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Airspeed: AP_Airspeed_I2C: get the right status according to datasheet
This commit is contained in:
parent
b1a62d6c8e
commit
cc28c8e6ee
@ -85,7 +85,7 @@ void AP_Airspeed_I2C::_collect()
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t status = data[0] & 0xC0;
|
||||
uint8_t status = (data[0] & 0xC0) >> 6;
|
||||
if (status == 2 || status == 3) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user