mirror of https://github.com/ArduPilot/ardupilot
AP_JSButton: simplifies logic
Less code make people happy Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
42e5b180cb
commit
bd1110f444
|
@ -28,9 +28,8 @@ uint8_t JSButton::function(bool shift) const
|
|||
{
|
||||
if (shift) {
|
||||
return _sfunction;
|
||||
} else {
|
||||
return _function;
|
||||
}
|
||||
return _function;
|
||||
}
|
||||
|
||||
void JSButton::set_default(button_function_t f, button_function_t sf)
|
||||
|
|
Loading…
Reference in New Issue