From 8b5c5fcdb758e97600b9d63c8aac1f695d0fe56b Mon Sep 17 00:00:00 2001 From: muramura Date: Thu, 12 Sep 2024 22:59:48 +1000 Subject: [PATCH] AP_AHRS: use UINT8_MAX as flag value in place of 255 --- libraries/AP_AHRS/AP_AHRS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS.cpp b/libraries/AP_AHRS/AP_AHRS.cpp index efc9675aa0..fa7ec596ff 100644 --- a/libraries/AP_AHRS/AP_AHRS.cpp +++ b/libraries/AP_AHRS/AP_AHRS.cpp @@ -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; } }