Force link _printf_float in dtostrf

This commit is contained in:
Sandeep Mistry 2016-02-11 16:39:55 -05:00
parent e804ad8f31
commit 155f259391

View file

@ -20,6 +20,8 @@
#include <stdio.h>
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
asm(".global _printf_float");
char fmt[20];
sprintf(fmt, "%%%d.%df", width, prec);
sprintf(sout, fmt, val);