aboutsummaryrefslogtreecommitdiff
path: root/cores/robot/WString.cpp
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2013-06-25 16:14:17 +0200
committerFederico Fissore <f.fissore@arduino.cc>2013-06-25 16:14:17 +0200
commit4ba06563af4c74cb37aecf1b34136eec0772b5fb (patch)
tree185f9ac2e40a416383875164c6b24af84cfd2f62 /cores/robot/WString.cpp
parent3c70cff3ee0a9e506e1f16124653b13b774902cc (diff)
parentda361cac0dab78954c11a91db61dcad96b8ac85f (diff)
Merge branch 'ide-1.5.x-discovery' into dev-ide-1.5.x-discovery
Diffstat (limited to 'cores/robot/WString.cpp')
-rw-r--r--cores/robot/WString.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/robot/WString.cpp b/cores/robot/WString.cpp
index 8c85cc5..48c30df 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, 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));
}