diff options
Diffstat (limited to 'cores/robot')
-rw-r--r-- | cores/robot/WString.cpp | 4 |
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)); } |