SRV_Channel: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS

This commit is contained in:
Siddharth Purohit 2021-06-20 16:11:15 +05:30 committed by Peter Barker
parent 02c74a8fa1
commit 69cc0b4615

View File

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