Skip to content

Commit

Permalink
AP_OpticalFlow: simplify condition used for building onboard optical …
Browse files Browse the repository at this point in the history
…flow in

we're not being consistent in the use of defines to protect this feature; fix that
  • Loading branch information
peterbarker authored and tridge committed Aug 13, 2024
1 parent edbe339 commit 1dc87a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_OpticalFlow/AP_OpticalFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1dc87a0

Please sign in to comment.