AP_HAL: fixed SLCAN duplicate define

This commit is contained in:
Andrew Tridgell 2023-04-07 10:28:22 +10:00
parent 70fb79c349
commit bdbcdfce60
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@
#define HAL_HAVE_DUAL_USB_CDC 0
#endif
#if HAL_NUM_CAN_IFACES && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if HAL_NUM_CAN_IFACES && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !defined(AP_CAN_SLCAN_ENABLED)
#define AP_CAN_SLCAN_ENABLED 1
#else
#define AP_CAN_SLCAN_ENABLED 0