AP_LandingGear: Simplify boolean expression

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-03 11:04:38 -03:00 committed by Andrew Tridgell
parent 1038581bcb
commit d749fce378

View File

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