From 155f259391460016c8945b67df172eb7d4f6290c Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Thu, 11 Feb 2016 16:39:55 -0500 Subject: [PATCH] Force link _printf_float in dtostrf --- cores/arduino/avr/dtostrf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/arduino/avr/dtostrf.c b/cores/arduino/avr/dtostrf.c index 259caa5b3..de164277b 100644 --- a/cores/arduino/avr/dtostrf.c +++ b/cores/arduino/avr/dtostrf.c @@ -20,6 +20,8 @@ #include 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);