AP_UAVCAN: allow rangefinder backends to be individually compiled in

This commit is contained in:
Peter Barker 2022-03-12 22:46:47 +11:00 committed by Andrew Tridgell
parent 71a4d24e72
commit 05131853d8
1 changed files with 2 additions and 0 deletions

View File

@ -342,7 +342,9 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters)
#if AP_OPTICALFLOW_HEREFLOW_ENABLED
AP_OpticalFlow_HereFlow::subscribe_msgs(this);
#endif
#if AP_RANGEFINDER_UAVCAN_ENABLED
AP_RangeFinder_UAVCAN::subscribe_msgs(this);
#endif
#if HAL_EFI_ENABLED
AP_EFI_DroneCAN::subscribe_msgs(this);
#endif