AP_HAL: fixed vprintf for no hal.h

This commit is contained in:
Andrew Tridgell 2022-02-21 14:45:32 +11:00
parent 6039b8012a
commit 56d74a352c

View File

@ -66,6 +66,11 @@
#define FL_FLTEXP FL_PREC #define FL_FLTEXP FL_PREC
#define FL_FLTFIX FL_LONG #define FL_FLTFIX FL_LONG
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
// get __FPU_PRESENT
#include <hal.h>
#endif
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)
{ {
unsigned char c; /* holds a char from the format string */ unsigned char c; /* holds a char from the format string */