Skip to content

Commit ea865de

Browse files
committed
Force link _printf_float in dtostrf
1 parent 4de7b45 commit ea865de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/avr/dtostrf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <stdio.h>
2121

2222
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
23+
asm(".global _printf_float");
24+
2325
char fmt[20];
2426
sprintf(fmt, "%%%d.%df", width, prec);
2527
sprintf(sout, fmt, val);

0 commit comments

Comments
 (0)