diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-16 09:31:17 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-16 09:31:17 +0000 |
commit | 3cd20fa5c748e449974207eb9c139df34a34e10a (patch) | |
tree | cd5a9eac2dc398c01b071512cab8e6976b667dcd | |
parent | c8a29d8802f436115664cc640faa8389cb4beb19 (diff) | |
download | ChibiOS-3cd20fa5c748e449974207eb9c139df34a34e10a.tar.gz ChibiOS-3cd20fa5c748e449974207eb9c139df34a34e10a.tar.bz2 ChibiOS-3cd20fa5c748e449974207eb9c139df34a34e10a.zip |
Fixed bug #910.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11291 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/lib/streams/chprintf.c | 3 | ||||
-rw-r--r-- | readme.txt | 2 |
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
|