AP_HAL: fixed build for HerePro

This commit is contained in:
Andrew Tridgell 2023-04-07 21:09:55 +10:00
parent baa7301977
commit d8416eb38f
1 changed files with 3 additions and 1 deletions

View File

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