chprintf() - float precision Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 639
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 7 times
Been thanked: 90 times

chprintf() - float precision  Topic is solved

Postby steved » Thu Aug 29, 2019 8:59 am

chprintf() doesn't print a float correctly when the precision comes from a variable - "%1.*f" prints "*f"
Added line 204 in the attached; moves source pointer on after reading and actioning the '*'
Attachments
chprintf.7z
(2.86 KiB) Downloaded 12 times

User avatar
FXCoder
Posts: 203
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 82 times
Been thanked: 58 times

Re: chprintf() - float precision

Postby FXCoder » Sat Aug 31, 2019 8:14 am

Hi Steve,
FYI you are missing another change in the source submitted.
See this post.
--
Bob

steved
Posts: 639
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 7 times
Been thanked: 90 times

Re: chprintf() - float precision

Postby steved » Sat Aug 31, 2019 8:26 pm

Thanks Bob - I'll add that to my mods

User avatar
Giovanni
Site Admin
Posts: 12392
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 610 times
Been thanked: 517 times
Contact:

Re: chprintf() - float precision

Postby Giovanni » Sat Oct 05, 2019 8:15 am

Hi,

Any final patch about this?

Giovanni

steved
Posts: 639
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 7 times
Been thanked: 90 times

Re: chprintf() - float precision

Postby steved » Sat Oct 05, 2019 8:27 am

Looks like I'd already downloaded the trunk version before finding this bug - so nothing more to do.

Trunk matches my working files.

User avatar
Giovanni
Site Admin
Posts: 12392
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 610 times
Been thanked: 517 times
Contact:

Re: chprintf() - float precision

Postby Giovanni » Sat Oct 05, 2019 8:31 am

Thanks.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: FXCoder and 1 guest