Eliminate GPS::_error, as it's responsible for pulling in the old printf, which doesn't work anymore. Fixing it's not worth the effort.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@955 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-11-27 08:46:41 +00:00
parent cce122d387
commit cb4e8144f4
2 changed files with 5 additions and 15 deletions

View File

@ -2,7 +2,6 @@
#include "GPS.h"
#include "WProgram.h"
#include <stdio.h>
int
GPS::status(void)
@ -21,15 +20,3 @@ GPS::_setTime(void)
{
_lastTime = millis();
}
void
GPS::_error(const char *fmt, ...)
{
va_list ap;
if (print_errors && stderr) {
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
}

View File

@ -79,7 +79,7 @@ public:
bool valid_read; ///< true if we have seen data from the GPS (use ::status instead)
// Debug support
bool print_errors; ///< if true, errors will be printed to stderr
bool print_errors; ///< deprecated
protected:
Stream *_port; ///< stream port the GPS is attached to
@ -111,7 +111,10 @@ protected:
///
/// @param fmt printf-like format string
///
void _error(const char *msg, ...);
/// @note deprecated as-is due to the difficulty of hooking up to a working
/// printf vs. the potential benefits
///
void _error(const char *msg, ...) {};
};