chprintf() - float precision

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

chprintf() - float precision

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 9 times

User avatar
FXCoder
Posts: 186
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 68 times
Been thanked: 53 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: 606
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 5 times
Been thanked: 76 times

Re: chprintf() - float precision

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

Thanks Bob - I'll add that to my mods


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest