chprintf() - float precision Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 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 113 times

User avatar
FXCoder
Posts: 384
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 180 times
Been thanked: 130 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: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: chprintf() - float precision

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

Hi,

Any final patch about this?

Giovanni

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 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: No registered users and 30 guests