mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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:
parent
cce122d387
commit
cb4e8144f4
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "GPS.h"
|
#include "GPS.h"
|
||||||
#include "WProgram.h"
|
#include "WProgram.h"
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int
|
int
|
||||||
GPS::status(void)
|
GPS::status(void)
|
||||||
@ -21,15 +20,3 @@ GPS::_setTime(void)
|
|||||||
{
|
{
|
||||||
_lastTime = millis();
|
_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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -79,7 +79,7 @@ public:
|
|||||||
bool valid_read; ///< true if we have seen data from the GPS (use ::status instead)
|
bool valid_read; ///< true if we have seen data from the GPS (use ::status instead)
|
||||||
|
|
||||||
// Debug support
|
// Debug support
|
||||||
bool print_errors; ///< if true, errors will be printed to stderr
|
bool print_errors; ///< deprecated
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Stream *_port; ///< stream port the GPS is attached to
|
Stream *_port; ///< stream port the GPS is attached to
|
||||||
@ -111,7 +111,10 @@ protected:
|
|||||||
///
|
///
|
||||||
/// @param fmt printf-like format string
|
/// @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, ...) {};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user