From 875fa3601891bfd948512dc531de2912ef9c327f Mon Sep 17 00:00:00 2001 From: Tatsuya Yamaguchi Date: Sat, 2 May 2020 14:46:33 +0900 Subject: [PATCH] Copter: remove an unnecessary condition --- ArduCopter/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/AP_Arming.cpp b/ArduCopter/AP_Arming.cpp index d258b5c565..304d086ea5 100644 --- a/ArduCopter/AP_Arming.cpp +++ b/ArduCopter/AP_Arming.cpp @@ -632,7 +632,7 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method) if (!rc().find_channel_for_option(RC_Channel::AUX_FUNC::MOTOR_ESTOP)){ SRV_Channels::set_emergency_stop(false); // if we are using motor Estop switch, it must not be in Estop position - } else if (rc().find_channel_for_option(RC_Channel::AUX_FUNC::MOTOR_ESTOP) && SRV_Channels::get_emergency_stop()){ + } else if (SRV_Channels::get_emergency_stop()){ check_failed(true, "Motor Emergency Stopped"); return false; }