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
This commit is contained in:
Peter Barker 2024-08-12 19:09:26 +10:00 committed by Andrew Tridgell
parent edbe339f48
commit 1dc87a0903

View File

@ -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;