mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: define HAL_MAX_CAN_PROTOCOL_DRIVERS for bootloader in hwdef.h
This commit is contained in:
parent
fc8ad509f7
commit
506030820e
|
@ -214,12 +214,8 @@
|
|||
#endif
|
||||
|
||||
#ifndef HAL_MAX_CAN_PROTOCOL_DRIVERS
|
||||
#if defined(HAL_BOOTLOADER_BUILD)
|
||||
#define HAL_MAX_CAN_PROTOCOL_DRIVERS 0
|
||||
#else
|
||||
#define HAL_MAX_CAN_PROTOCOL_DRIVERS HAL_NUM_CAN_IFACES
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAL_CANMANAGER_ENABLED
|
||||
#define HAL_CANMANAGER_ENABLED (HAL_MAX_CAN_PROTOCOL_DRIVERS > 0)
|
||||
|
|
Loading…
Reference in New Issue