Copter: Change the auto mode judgment to address

This commit is contained in:
murata 2021-08-30 22:30:33 +09:00 committed by Randy Mackay
parent bb7c3a7fb4
commit a6af0e87fc
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ bool RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const AuxSwi
if (ch_flag == RC_Channel::AuxSwitchPos::HIGH) {
// do not allow saving new waypoints while we're in auto or disarmed
if (copter.flightmode->mode_number() == Mode::Number::AUTO || copter.flightmode->mode_number() == Mode::Number::AUTO_RTL || !copter.motors->armed()) {
if (copter.flightmode == &copter.mode_auto || !copter.motors->armed()) {
break;
}