AP_Airspeed: AP_Airspeed_I2C: get the right status according to datasheet

This commit is contained in:
William Liu 2016-09-09 10:32:14 -07:00
parent b1a62d6c8e
commit cc28c8e6ee

View File

@ -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;
}