From 6e6449c6c653722233a6f9bfffe39d67ea86acbd Mon Sep 17 00:00:00 2001 From: jaxxzer Date: Wed, 20 Jan 2016 22:53:43 -0500 Subject: [PATCH] Fix build error. --- ArduSub/radio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/radio.cpp b/ArduSub/radio.cpp index 4e8dd6963f..709ca05e64 100644 --- a/ArduSub/radio.cpp +++ b/ArduSub/radio.cpp @@ -223,7 +223,7 @@ void Sub::set_throttle_zero_flag(int16_t throttle_control) // if not using throttle interlock and non-zero throttle and not E-stopped, // or using motor interlock and it's enabled, then motors are running, // and we are flying. Immediately set as non-zero - if ((!ap.using_interlock && (throttle_control < 475 || throttle_control > 525)&& && !ap.motor_emergency_stop) || (ap.using_interlock && motors.get_interlock())) { + if ((!ap.using_interlock && (throttle_control < 475 || throttle_control > 525) && !ap.motor_emergency_stop) || (ap.using_interlock && motors.get_interlock())) { last_nonzero_throttle_ms = tnow_ms; ap.throttle_zero = false; } else if (tnow_ms - last_nonzero_throttle_ms > THROTTLE_ZERO_DEBOUNCE_TIME_MS) {