Force link _printf_float in dtostrf
This commit is contained in:
parent
e804ad8f31
commit
155f259391
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue