RC_Channel: correct compilation with COMPASS_CAL_ENABLED off

This commit is contained in:
Peter Barker 2023-09-18 21:54:22 +10:00 committed by Peter Barker
parent acf437b258
commit d2ad165a4a
1 changed files with 3 additions and 1 deletions

View File

@ -1557,6 +1557,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
break;
}
#if COMPASS_CAL_ENABLED
case AUX_FUNC::MAG_CAL: {
Compass &compass = AP::compass();
switch (ch_flag) {
@ -1580,6 +1581,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
}
break;
}
#endif
case AUX_FUNC::ARM_EMERGENCY_STOP: {
switch (ch_flag) {