mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
AP_PiccoloCAN: AP::can().log_text() needs HAL_ENABLE_LIBUAVCAN_DRIVERS
This commit is contained in:
parent
c833a71fff
commit
96055e877b
@ -40,7 +40,11 @@
|
|||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
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, "PiccoloCAN", fmt, ##args); } while (0)
|
#define debug_can(level_debug, fmt, args...) do { AP::can().log_text(level_debug, "PiccoloCAN", fmt, ##args); } while (0)
|
||||||
|
#else
|
||||||
|
#define debug_can(level_debug, fmt, args...)
|
||||||
|
#endif
|
||||||
|
|
||||||
// table of user-configurable Piccolo CAN bus parameters
|
// table of user-configurable Piccolo CAN bus parameters
|
||||||
const AP_Param::GroupInfo AP_PiccoloCAN::var_info[] = {
|
const AP_Param::GroupInfo AP_PiccoloCAN::var_info[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user