From a7ba61d1b74c01640de5bd28d2c909d3d31ec650 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 21 Jun 2013 21:23:12 +0200 Subject: String: changed default to 2 decimal digits --- cores/robot/WString.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cores/robot/WString.cpp') 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)); } -- cgit v1.2.3-18-g5258