AP_HAL: cleanup ifdefs for SLCAN enable

This commit is contained in:
Andrew Tridgell 2019-10-06 16:29:15 +11:00
parent 0eb9a58f17
commit 83bacfa89c

View File

@ -226,3 +226,9 @@
#ifndef HAL_HAVE_DUAL_USB_CDC
#define HAL_HAVE_DUAL_USB_CDC 0
#endif
#if HAL_WITH_UAVCAN && !HAL_MINIMIZE_FEATURES && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#define AP_UAVCAN_SLCAN_ENABLED 1
#else
#define AP_UAVCAN_SLCAN_ENABLED 0
#endif