From 9a2eea9769b0bcc9b73b9d924f86dbf8229b777e Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Wed, 2 May 2018 18:21:41 +0530 Subject: [PATCH] AP_HAL: disable float print methods for non FPU controllers --- libraries/AP_HAL/utility/print_vprintf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL/utility/print_vprintf.cpp b/libraries/AP_HAL/utility/print_vprintf.cpp index 8333ba8d62..01e6d98540 100644 --- a/libraries/AP_HAL/utility/print_vprintf.cpp +++ b/libraries/AP_HAL/utility/print_vprintf.cpp @@ -157,6 +157,7 @@ void print_vprintf(AP_HAL::BetterStream *s, const char *fmt, va_list ap) break; } while ((c = *fmt++) != 0); +#if CONFIG_HAL_BOARD != HAL_BOARD_CHIBIOS || __FPU_PRESENT /* * Handle floating-point formats E, F, G, e, f, g. */ @@ -349,7 +350,7 @@ flt_oper: goto tail; } - +#endif //#if CONFIG_HAL_BOARD != HAL_BOARD_CHIBIOS || __FPU_PRESENT /* * Handle string formats c, s, S. */