diff --git a/libraries/AP_AHRS/AP_AHRS_DCM.cpp b/libraries/AP_AHRS/AP_AHRS_DCM.cpp index 6d64b7dc5a..df0b3a825e 100644 --- a/libraries/AP_AHRS/AP_AHRS_DCM.cpp +++ b/libraries/AP_AHRS/AP_AHRS_DCM.cpp @@ -741,7 +741,7 @@ bool AP_AHRS_DCM::airspeed_estimate(float *airspeed_ret) bool ret = false; if (_airspeed && _airspeed->use()) { *airspeed_ret = _airspeed->get_airspeed(); - ret = true; + return true; } // estimate it via GPS speed and wind