Browse Source

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

zr-v5.1
Tom Pittenger 4 years ago committed by Andrew Tridgell
parent
commit
c833a71fff
  1. 4
      libraries/AP_KDECAN/AP_KDECAN.cpp

4
libraries/AP_KDECAN/AP_KDECAN.cpp

@ -35,7 +35,11 @@ @@ -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

Loading…
Cancel
Save