RC_Channel: add and use AP_OPTICALFLOW_CALIBRATOR_ENABLED

This commit is contained in:
Peter Barker 2023-07-12 16:55:47 +10:00 committed by Peter Barker
parent 8416730a8c
commit 36ffe42f01
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
}
break;
#if AP_OPTICALFLOW_ENABLED
#if AP_OPTICALFLOW_CALIBRATOR_ENABLED
case AUX_FUNC::OPTFLOW_CAL: {
AP_OpticalFlow *optflow = AP::opticalflow();
if (optflow == nullptr) {