From a1851239b51abf8a6ede53fc1c18bbcee4701237 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Sat, 19 Aug 2017 19:44:36 -0400 Subject: [PATCH] Sub: input_hold_toggle -> input_hold_set --- ArduSub/joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduSub/joystick.cpp b/ArduSub/joystick.cpp index cac2bd0d34..fe23d8052c 100644 --- a/ArduSub/joystick.cpp +++ b/ArduSub/joystick.cpp @@ -318,7 +318,7 @@ void Sub::handle_jsbutton_press(uint8_t button, bool shift, bool held) case JSButton::button_function_t::k_trim_pitch_dec: pitchTrim = constrain_float(pitchTrim-10,-200,200); break; - case JSButton::button_function_t::k_input_hold_toggle: + case JSButton::button_function_t::k_input_hold_set: if (!held) { zTrim = z_last-500; xTrim = x_last; @@ -539,7 +539,7 @@ void Sub::default_js_buttons() {JSButton::button_function_t::k_arm, JSButton::button_function_t::k_none}, {JSButton::button_function_t::k_mount_center, JSButton::button_function_t::k_none}, - {JSButton::button_function_t::k_input_hold_toggle, JSButton::button_function_t::k_none}, + {JSButton::button_function_t::k_input_hold_set, JSButton::button_function_t::k_none}, {JSButton::button_function_t::k_mount_tilt_down, JSButton::button_function_t::k_none}, {JSButton::button_function_t::k_mount_tilt_up, JSButton::button_function_t::k_none}, {JSButton::button_function_t::k_gain_inc, JSButton::button_function_t::k_trim_pitch_dec},