Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Force link _printf_float in dtostrf
  • Loading branch information
sandeepmistry committed Feb 16, 2016
commit 155f259391460016c8945b67df172eb7d4f6290c
2 changes: 2 additions & 0 deletions cores/arduino/avr/dtostrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down