diff --git a/libraries/AP_LandingGear/AP_LandingGear.cpp b/libraries/AP_LandingGear/AP_LandingGear.cpp index 1fede15971..680762575c 100644 --- a/libraries/AP_LandingGear/AP_LandingGear.cpp +++ b/libraries/AP_LandingGear/AP_LandingGear.cpp @@ -164,7 +164,7 @@ bool AP_LandingGear::deployed() if (_pin_deployed == -1) { return _deployed; } else { - return hal.gpio->read(_pin_deployed) == _pin_deployed_polarity ? true : false; + return hal.gpio->read(_pin_deployed) == _pin_deployed_polarity; } }