mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
edbe339f48
commit
1dc87a0903
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user