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

This commit is contained in:
Tom Pittenger 2021-05-19 00:30:52 -07:00 committed by Andrew Tridgell
parent c807035e02
commit 4054b5e891

View File

@ -45,7 +45,11 @@ extern const AP_HAL::HAL& hal;
using namespace Linux; using namespace Linux;
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
#define Debug(fmt, args...) do { AP::can().log_text(AP_CANManager::LOG_DEBUG, "CANLinuxIface", fmt, ##args); } while (0) #define Debug(fmt, args...) do { AP::can().log_text(AP_CANManager::LOG_DEBUG, "CANLinuxIface", fmt, ##args); } while (0)
#else
#define Debug(fmt, args...)
#endif
CANIface::CANSocketEventSource CANIface::evt_can_socket[HAL_NUM_CAN_IFACES]; CANIface::CANSocketEventSource CANIface::evt_can_socket[HAL_NUM_CAN_IFACES];