AP_GPS: fixed debug code
This commit is contained in:
parent
5ac23d358f
commit
f93a7d50eb
@ -14,9 +14,10 @@
|
||||
|
||||
#define UBLOX_DEBUGGING 0
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
#if UBLOX_DEBUGGING
|
||||
# define Debug(fmt, args ...) do {Serial.printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); delay(0); } while(0)
|
||||
# define Debug(fmt, args ...) do {hal.console->printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); delay(0); } while(0)
|
||||
#else
|
||||
# define Debug(fmt, args ...)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user