AP_KDECAN: AP::can().log_text() needs HAL_ENABLE_LIBUAVCAN_DRIVERS

This commit is contained in:
Tom Pittenger 2021-05-19 00:31:04 -07:00 committed by Andrew Tridgell
parent 4054b5e891
commit c833a71fff

View File

@ -35,7 +35,11 @@
#if HAL_MAX_CAN_PROTOCOL_DRIVERS
extern const AP_HAL::HAL& hal;
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
#define debug_can(level_debug, fmt, args...) do { AP::can().log_text(level_debug, "KDECAN", fmt, ##args); } while (0)
#else
#define debug_can(level_debug, fmt, args...)
#endif
#define DEFAULT_NUM_POLES 14