AP_GPS: fixed debug code

This commit is contained in:
Andrew Tridgell 2013-01-06 15:10:04 +11:00
parent 5ac23d358f
commit f93a7d50eb

View File

@ -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