Skip to content

Commit a8d8147

Browse files
committed
Merge remote-tracking branch 'upstream/ide-1.5.x' into ide-1.5.x-library-to-new-format
2 parents ae93178 + ea70556 commit a8d8147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/arduino/avr/cores/arduino/WString.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,14 @@ unsigned char String::concat(unsigned long num)
325325
unsigned char String::concat(float num)
326326
{
327327
char buf[20];
328-
char* string = dtostrf(num, 8, 2, buf);
328+
char* string = dtostrf(num, 4, 2, buf);
329329
return concat(string, strlen(string));
330330
}
331331

332332
unsigned char String::concat(double num)
333333
{
334334
char buf[20];
335-
char* string = dtostrf(num, 8, 2, buf);
335+
char* string = dtostrf(num, 4, 2, buf);
336336
return concat(string, strlen(string));
337337
}
338338

0 commit comments

Comments
 (0)