diff options
Diffstat (limited to 'os/various')
-rw-r--r-- | os/various/chprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/chprintf.c b/os/various/chprintf.c index c97ea0cf2..d712b98ab 100644 --- a/os/various/chprintf.c +++ b/os/various/chprintf.c @@ -137,7 +137,7 @@ void chprintf(BaseSequentialStream *chp, const char *fmt, ...) { left_align = TRUE;
}
filler = ' ';
- if (*fmt == '.') {
+ if ((*fmt == '.') || (*fmt == '0')) {
fmt++;
filler = '0';
}
|