AP_HAL: disable float print methods for non FPU controllers

This commit is contained in:
Siddharth Purohit 2018-05-02 18:21:41 +05:30 committed by Andrew Tridgell
parent 5e4f76886a
commit 9a2eea9769

View File

@ -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.
*/