From 36ffe42f01b3789d6351039264405d936f18b5bd Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 12 Jul 2023 16:55:47 +1000 Subject: [PATCH] RC_Channel: add and use AP_OPTICALFLOW_CALIBRATOR_ENABLED --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 1bf97a2b2a..417e6d1007 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -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) {