chprintf float
Posted: Mon Aug 28, 2017 11:08 pm
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.
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.