From 1dc87a090363ad6ad23916ac4cb6fd1c6490fb21 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Aug 2024 19:09:26 +1000 Subject: [PATCH] AP_OpticalFlow: simplify condition used for building onboard optical flow in we're not being consistent in the use of defines to protect this feature; fix that --- libraries/AP_OpticalFlow/AP_OpticalFlow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OpticalFlow/AP_OpticalFlow.cpp b/libraries/AP_OpticalFlow/AP_OpticalFlow.cpp index fc14d0d316..3492718ea4 100644 --- a/libraries/AP_OpticalFlow/AP_OpticalFlow.cpp +++ b/libraries/AP_OpticalFlow/AP_OpticalFlow.cpp @@ -140,7 +140,7 @@ void AP_OpticalFlow::init(uint32_t log_bit) #endif break; case Type::BEBOP: -#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP +#if AP_OPTICALFLOW_ONBOARD_ENABLED backend = NEW_NOTHROW AP_OpticalFlow_Onboard(*this); #endif break;