mirror of https://github.com/ArduPilot/ardupilot
AP_KDECAN: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS
This commit is contained in:
parent
81f6e3c585
commit
1a2c51d6df
|
@ -35,7 +35,7 @@
|
||||||
#if HAL_MAX_CAN_PROTOCOL_DRIVERS
|
#if HAL_MAX_CAN_PROTOCOL_DRIVERS
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
|
#if HAL_CANMANAGER_ENABLED
|
||||||
#define debug_can(level_debug, fmt, args...) do { AP::can().log_text(level_debug, "KDECAN", fmt, ##args); } while (0)
|
#define debug_can(level_debug, fmt, args...) do { AP::can().log_text(level_debug, "KDECAN", fmt, ##args); } while (0)
|
||||||
#else
|
#else
|
||||||
#define debug_can(level_debug, fmt, args...)
|
#define debug_can(level_debug, fmt, args...)
|
||||||
|
|
Loading…
Reference in New Issue