aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/lib/streams/chprintf.c3
-rw-r--r--readme.txt2
2 files changed, 4 insertions, 1 deletions
diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c
index 5875d3e8a..737d01341 100644
--- a/os/hal/lib/streams/chprintf.c
+++ b/os/hal/lib/streams/chprintf.c
@@ -163,8 +163,9 @@ int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
break;
width = width * 10 + c;
}
- precision = 0;
+ precision = 6;
if (c == '.') {
+ precision = 0;
while (TRUE) {
c = *fmt++;
if (c >= '0' && c <= '9')
diff --git a/readme.txt b/readme.txt
index 7cefce13c..3f5b737f4 100644
--- a/readme.txt
+++ b/readme.txt
@@ -166,6 +166,8 @@
dependencies and configuration directories. This makes possible
to have multiple non-conflicting makefiles in the same project.
Updated the various platform.mk implementing "smart build" mode.
+- HAL: Fixed chprintf float support for 0 precision (bug #910)(backported to
+ 17.6.4 and 16.1.10).
- RT: Fixed compile error with assertions enabled and dynamic extensions
disabled (bug #909)(backported to 17.6.4).
- HAL: Fixed compile error HAL UART without WAIT (bug #908)(backported to