mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_LandingGear: Simplify boolean expression
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
1038581bcb
commit
d749fce378
@ -164,7 +164,7 @@ bool AP_LandingGear::deployed()
|
|||||||
if (_pin_deployed == -1) {
|
if (_pin_deployed == -1) {
|
||||||
return _deployed;
|
return _deployed;
|
||||||
} else {
|
} else {
|
||||||
return hal.gpio->read(_pin_deployed) == _pin_deployed_polarity ? true : false;
|
return hal.gpio->read(_pin_deployed) == _pin_deployed_polarity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user