AP_UAVCAN: AP_Compass_UAVCAN may not be enabled

This commit is contained in:
Peter Barker 2023-02-20 12:05:19 +11:00 committed by Andrew Tridgell
parent f7fc5cd947
commit 4a44b6af86
1 changed files with 2 additions and 0 deletions

View File

@ -352,7 +352,9 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters)
// Roundup all subscribers from supported drivers
AP_UAVCAN_DNA_Server::subscribe_msgs(this);
AP_GPS_UAVCAN::subscribe_msgs(this);
#if AP_COMPASS_UAVCAN_ENABLED
AP_Compass_UAVCAN::subscribe_msgs(this);
#endif
#if AP_BARO_UAVCAN_ENABLED
AP_Baro_UAVCAN::subscribe_msgs(this);
#endif