AP_UAVCAN: correct compilation with EFI dronecan not compiled in

This commit is contained in:
Peter Barker 2022-10-01 16:56:01 +10:00 committed by Andrew Tridgell
parent e829595594
commit c06d0cda30
1 changed files with 1 additions and 1 deletions

View File

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