AP_Common: pre-declare print_vprintf

these seem to override a soft symbol somewhere, so can't be static or be removed or the tests fail
This commit is contained in:
Peter Barker 2023-05-20 11:18:50 +10:00 committed by Peter Barker
parent 2e1f8d8b8b
commit 5333f404d3
2 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public:
bool discard_input() override { return false; }
};
void print_vprintf(AP_HAL::BetterStream *s, const char *fmt, va_list ap);
void print_vprintf(AP_HAL::BetterStream *s, const char *fmt, va_list ap) {
BufferPrinter* p = static_cast<BufferPrinter*>(s);
if (count < 2) {

View File

@ -31,6 +31,7 @@ public:
bool discard_input() override { return false; }
};
void print_vprintf(AP_HAL::BetterStream *s, const char *fmt, va_list ap);
void print_vprintf(AP_HAL::BetterStream *s, const char *fmt, va_list ap) {
BufferPrinter* p = static_cast<BufferPrinter*>(s);
count++;