Skip to content

Commit ea5d09c

Browse files
authored
Do not compile 'dtostrf' since the symbol dtostrf is available within ArduinoCore-mbed leading to a multiple definition error during the linking step. (#10)
1 parent b6ab3c4 commit ea5d09c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dtostrf.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20+
#if !defined(ARDUINO_ARCH_MBED)
21+
2022
#include <stdio.h>
2123

2224
char *dtostrf (double val, signed char width, unsigned char prec, char *sout)
@@ -28,3 +30,5 @@ char *dtostrf (double val, signed char width, unsigned char prec, char *sout)
2830
sprintf(sout, fmt, val);
2931
return sout;
3032
}
33+
34+
#endif /* !defined(ARDUINO_ARCH_MBED) */

0 commit comments

Comments
 (0)