AP_GPS: fixed uBlox Debug() macro

This commit is contained in:
Andrew Tridgell 2013-03-20 15:42:07 +11:00
parent 8766e86091
commit 3f6eb87f23

View File

@ -17,7 +17,7 @@
extern const AP_HAL::HAL& hal; extern const AP_HAL::HAL& hal;
#if UBLOX_DEBUGGING #if UBLOX_DEBUGGING
# define Debug(fmt, args ...) do {hal.console->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); hal.scheduler->delay(1); } while(0)
#else #else
# define Debug(fmt, args ...) # define Debug(fmt, args ...)
#endif #endif