AP_AHRS: use UINT8_MAX as flag value in place of 255

This commit is contained in:
muramura 2024-09-12 22:59:48 +10:00 committed by Peter Barker
parent f3b4f8fdc4
commit 8b5c5fcdb7
1 changed files with 1 additions and 1 deletions

View File

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