From f93a7d50eb0bec180406db221b54236b0f404399 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 Jan 2013 15:10:04 +1100 Subject: [PATCH] AP_GPS: fixed debug code --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 6ee9c23b7b..efdbdbab54 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -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