AP_ToshibaCAN: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS

This commit is contained in:
Siddharth Purohit 2021-06-20 16:09:57 +05:30 committed by Peter Barker
parent 0795225475
commit 5d8a6d167f

View File

@ -31,7 +31,7 @@
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, "ToshibaCAN", fmt, #args); } while (0) #define debug_can(level_debug, fmt, args...) do { AP::can().log_text(level_debug, "ToshibaCAN", fmt, #args); } while (0)
#else #else
#define debug_can(level_debug, fmt, args...) #define debug_can(level_debug, fmt, args...)