Browse Source

SRV_Channel: do not use AP_UAVCAN unless LIBUAVCAN is enabled

c415-sdk
Tom Pittenger 4 years ago committed by Andrew Tridgell
parent
commit
0590352bef
  1. 2
      libraries/SRV_Channel/SRV_Channels.cpp

2
libraries/SRV_Channel/SRV_Channels.cpp

@ -350,7 +350,7 @@ void SRV_Channels::push() @@ -350,7 +350,7 @@ void SRV_Channels::push()
#endif
#endif // HAL_BUILD_AP_PERIPH
#if HAL_MAX_CAN_PROTOCOL_DRIVERS
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
// push outputs to CAN
uint8_t can_num_drivers = AP::can().get_num_drivers();
for (uint8_t i = 0; i < can_num_drivers; i++) {

Loading…
Cancel
Save