AP_UAVCAN: allow baro backends to be individually compiled out

This commit is contained in:
Peter Barker 2022-01-27 14:58:57 +11:00 committed by Andrew Tridgell
parent b863f8a331
commit 8cd0922f01
1 changed files with 2 additions and 0 deletions

View File

@ -327,7 +327,9 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters)
AP_UAVCAN_DNA_Server::subscribe_msgs(this);
AP_GPS_UAVCAN::subscribe_msgs(this);
AP_Compass_UAVCAN::subscribe_msgs(this);
#if AP_BARO_UAVCAN_ENABLED
AP_Baro_UAVCAN::subscribe_msgs(this);
#endif
AP_BattMonitor_UAVCAN::subscribe_msgs(this);
#if AP_AIRSPEED_UAVCAN_ENABLED
AP_Airspeed_UAVCAN::subscribe_msgs(this);