From 2837fac5931cf6fac4d5d7cfd33fed80fc69842d Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Wed, 20 Jan 2016 21:24:26 -0800 Subject: [PATCH] Sub: Fixed joystick button persistance issue. --- ArduSub/radio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/radio.cpp b/ArduSub/radio.cpp index 9eb6a46e3c..fca173a72b 100644 --- a/ArduSub/radio.cpp +++ b/ArduSub/radio.cpp @@ -148,7 +148,7 @@ void Sub::transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t float throttleScale = 0.8; int16_t rpyCenter = 1500; int16_t throttleBase = 1500-500*throttleScale; - int16_t mode; + static int16_t mode; static int16_t camTilt = 1500;