Hi all,
I want to kown if any modification have been made to the chprintf library?
I want to print a float value like this: chprintf(chp, "\n\r: %.3f" 12.03456);
But I got an output to my console looking like this: " f"
Some time ago I was able to print float value with this code, but it does not work any more.
I have activated the library in the Makefile PRINTF_LIB = $(PRINTF_LIB_FLOAT)
My target board is Arduino Mega, and I use the trunk for this test.
Thanks for any hints and suggestions.
chprintf float Topic is solved
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: chprintf float
Hi Giovanni,
I have not see that, thanks, I will active this and make a test tonight and see if it works. But I'm pretty sure that this was my problem.
Thanks.
I have not see that, thanks, I will active this and make a test tonight and see if it works. But I'm pretty sure that this was my problem.
Thanks.
regards,
Theo.
Theo.
Who is online
Users browsing this forum: No registered users and 10 guests