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;