diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c index 33134da96..4ecec7bcf 100644 --- a/os/hal/lib/streams/chprintf.c +++ b/os/hal/lib/streams/chprintf.c @@ -315,7 +315,7 @@ unsigned_common: width = -width; } if (width < 0) { - if (*s == '-' && filler == '0') { + if ((*s == '-' || *s == '+') && filler == '0') { streamPut(chp, (uint8_t)*s++); n++; i--; diff --git a/readme.txt b/readme.txt index 4bc848cfe..1c64d9b7a 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ ***************************************************************************** *** Next *** +- FIX: Fixed chsnprintf() sign mode/filler mode conflict (bug #1140) - NEW: Added time conversion macros and functions for monotonic time stamps - NEW: Added support for STM32WB55. - NEW: Added chscanf() and buffered streams, contributed by Alex Lewontin.