Skip to content

Commit

Permalink
Copter: remove redundant search for channel option
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jul 11, 2019
1 parent 3d9fce6 commit d792db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,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()){
gcs().send_text(MAV_SEVERITY_CRITICAL,"Arm: Motor Emergency Stopped");
return false;
}
Expand Down

0 comments on commit d792db5

Please sign in to comment.