Skip to content

Commit 029caa4

Browse files
committed
padding should be done with space, not with '0'
1 parent 4700440 commit 029caa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_noniso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
203203
remainder -= digit;
204204
}
205205
// add '0' to fill minimum width requirement
206-
while (width-- > 0) *out++ = '0';
206+
while (width-- > 0) *out++ = ' ';
207207
// make sure the string is terminated
208208
*out = 0;
209209
return s;

0 commit comments

Comments
 (0)