1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

Merge pull request #21 from esp8266/esp8266

pull latest changes
This commit is contained in:
ficeto 2015-05-15 20:17:26 +03:00
commit 7179c1aea8

View File

@ -188,10 +188,10 @@ char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
++out;
}
while(prec-- > 0) {
for (unsigned char decShift = prec; decShift > 0; decShift--) {
remainder *= 10.0;
}
sprintf(out, "%d", (int) remainder);
sprintf(out, "%0*d", prec, (int)remainder);
return s;
}