diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-06-21 21:23:12 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-06-21 21:23:12 +0200 |
commit | a7ba61d1b74c01640de5bd28d2c909d3d31ec650 (patch) | |
tree | 3accd97517a7537225d6f2f6265050bb3d5ded3b /cores/arduino/WString.cpp | |
parent | f25e5e94f7cd529fe57e1cbe94a9aafce94aaddf (diff) |
String: changed default to 2 decimal digits
Diffstat (limited to 'cores/arduino/WString.cpp')
-rw-r--r-- | cores/arduino/WString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index 8c85cc5..48c30df 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -325,14 +325,14 @@ unsigned char String::concat(unsigned long num) unsigned char String::concat(float num) { char buf[20]; - char* string = dtostrf(num, 8, 6, buf); + char* string = dtostrf(num, 8, 2, buf); return concat(string, strlen(string)); } unsigned char String::concat(double num) { char buf[20]; - char* string = dtostrf(num, 8, 6, buf); + char* string = dtostrf(num, 8, 2, buf); return concat(string, strlen(string)); } |