diff options
author | Federico Fissore <f.fissore@arduino.cc> | 2013-06-28 15:36:50 +0200 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-06-28 15:36:50 +0200 |
commit | 737ab5164de89fe00a2519b67a191bdf31ddc7d3 (patch) | |
tree | 447941fd3b944aa06b81ef388f59994471230301 /cores/robot/WString.cpp | |
parent | 9bc2ad10cb38ca5c659abb41f03b169928c70792 (diff) | |
parent | 620fe0a3ac6ed9ecd63a9e0cdd268b1d0b8e7236 (diff) |
Merge remote-tracking branch 'arduino/ide-1.5.x' into dev-ide-1.5.x-discovery
Diffstat (limited to 'cores/robot/WString.cpp')
-rw-r--r-- | cores/robot/WString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/robot/WString.cpp b/cores/robot/WString.cpp index 48c30df..db79da4 100644 --- a/cores/robot/WString.cpp +++ b/cores/robot/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, 2, buf); + char* string = dtostrf(num, 4, 2, buf); return concat(string, strlen(string)); } unsigned char String::concat(double num) { char buf[20]; - char* string = dtostrf(num, 8, 2, buf); + char* string = dtostrf(num, 4, 2, buf); return concat(string, strlen(string)); } |