mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: use UINT8_MAX as flag value in place of 255
This commit is contained in:
parent
f3b4f8fdc4
commit
8b5c5fcdb7
|
@ -3221,7 +3221,7 @@ uint8_t AP_AHRS::get_active_airspeed_index() const
|
|||
#if HAL_NAVEKF3_AVAILABLE
|
||||
if (active_EKF_type() == EKFType::THREE) {
|
||||
uint8_t ret = EKF3.getActiveAirspeed();
|
||||
if (ret != 255 && airspeed->healthy(ret) && airspeed->use(ret)) {
|
||||
if (ret != UINT8_MAX && airspeed->healthy(ret) && airspeed->use(ret)) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue