From 620fe0a3ac6ed9ecd63a9e0cdd268b1d0b8e7236 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 28 Jun 2013 09:53:25 +0200 Subject: String: fixed number of whitespaces in concat() methods --- cores/arduino/WString.cpp | 4 ++-- cores/robot/WString.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 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)); } 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)); } -- cgit v1.2.3-18-g5258