aboutsummaryrefslogtreecommitdiff
path: root/cores/robot/WString.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-06-28 09:53:25 +0200
committerCristian Maglie <c.maglie@bug.st>2013-06-28 09:53:25 +0200
commit620fe0a3ac6ed9ecd63a9e0cdd268b1d0b8e7236 (patch)
tree2ee2018817c89a5a7e6f41c1c186c9ec6b45f605 /cores/robot/WString.cpp
parenta7ba61d1b74c01640de5bd28d2c909d3d31ec650 (diff)
String: fixed number of whitespaces in concat() methods
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 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));
}