mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
SRV_Channel: Simplify boolean expression
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
300a14aaae
commit
0e76006dc5
@ -196,7 +196,7 @@ public:
|
|||||||
|
|
||||||
// return true if the channel is reversed
|
// return true if the channel is reversed
|
||||||
bool get_reversed(void) const {
|
bool get_reversed(void) const {
|
||||||
return reversed?true:false;
|
return reversed != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set MIN/MAX parameters
|
// set MIN/MAX parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user