Jan Breuer
2015-04-19 f1cd7de018b623d19a8f42ac47f0271a28eedcce
libscpi/inc/scpi/config.h
@@ -64,7 +64,8 @@
#endif
/* AVR libc */
#if defined(__AVR_LIBC_VERSION__)
#if defined(__AVR__)
#include <stdlib.h>
#define HAVE_DTOSTRE            1
#endif
@@ -98,7 +99,7 @@
#endif
#if HAVE_DTOSTRE
#define SCPI_doubleToStr(v, s, l) strlen(dtostre((v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTRE_ALWAYS_SIGN | DTOSTR_UPPERCASE))
#define SCPI_doubleToStr(v, s, l) strlen(dtostre((v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTR_ALWAYS_SIGN | DTOSTR_UPPERCASE))
#else
#define SCPI_doubleToStr(v, s, l) snprintf((s), (l), "%lg", (v))
#endif