From ee452c8d4d91fefde74ea5c75eef5c981b4e3981 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Thu, 23 Jan 2014 21:36:45 +0100 Subject: [PATCH] OP-1192 Do not allow craft to be armed if input is incorrectly calibrated (and throttle cant go < 0 ) --- flight/modules/ManualControl/manualcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/modules/ManualControl/manualcontrol.c b/flight/modules/ManualControl/manualcontrol.c index ce47a1201..4ed56a1ad 100644 --- a/flight/modules/ManualControl/manualcontrol.c +++ b/flight/modules/ManualControl/manualcontrol.c @@ -1043,7 +1043,7 @@ static void setArmedIfChanged(uint8_t val) */ static void processArm(ManualControlCommandData *cmd, ManualControlSettingsData *settings, int8_t armSwitch) { - bool lowThrottle = cmd->Throttle <= 0; + bool lowThrottle = cmd->Throttle < 0; /** * do NOT check throttle if disarming via switch, must be instant