aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.cpp
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2013-06-28 15:36:50 +0200
committerFederico Fissore <f.fissore@arduino.cc>2013-06-28 15:36:50 +0200
commit737ab5164de89fe00a2519b67a191bdf31ddc7d3 (patch)
tree447941fd3b944aa06b81ef388f59994471230301 /cores/arduino/WString.cpp
parent9bc2ad10cb38ca5c659abb41f03b169928c70792 (diff)
parent620fe0a3ac6ed9ecd63a9e0cdd268b1d0b8e7236 (diff)
Merge remote-tracking branch 'arduino/ide-1.5.x' into dev-ide-1.5.x-discovery
Diffstat (limited to 'cores/arduino/WString.cpp')
-rw-r--r--cores/arduino/WString.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp
index 48c30df..db79da4 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, 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));
}