mirror of https://github.com/ArduPilot/ardupilot
AP_Beacon: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
This commit is contained in:
parent
d205e2e5cf
commit
f5e55b9a12
|
@ -37,7 +37,7 @@ extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
#if MM_DEBUG_LEVEL
|
#if MM_DEBUG_LEVEL
|
||||||
#include <GCS_MAVLink/GCS.h>
|
#include <GCS_MAVLink/GCS.h>
|
||||||
#define Debug(level, fmt, args ...) do { if (level <= MM_DEBUG_LEVEL) { gcs().send_text(MAV_SEVERITY_INFO, fmt, ## args); } } while (0)
|
#define Debug(level, fmt, args ...) do { if (level <= MM_DEBUG_LEVEL) { GCS_SEND_TEXT(MAV_SEVERITY_INFO, fmt, ## args); } } while (0)
|
||||||
#else
|
#else
|
||||||
#define Debug(level, fmt, args ...)
|
#define Debug(level, fmt, args ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue