diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 9d140044b4..3484872c4d 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -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