Open GoogleCodeExporter opened 9 years ago
As a previous victim of this (Now having code like:
if( d < 0x10){ Serial.print("0");} Serial.print(d,HEX);,
Notice this is even worse if the argument is int or long.
Perhaps instead, to allow a single digit HEX and maintain backward
compatibility,
new types HEX02, HEX03, HEX04, ... HEX08 could be added providing a much as
00000001 for the HEX08 case.
Surely the documentation MUST be revised to include this FEATURE.
For those who feel to much documentation confuses the beginner perhaps a
"addition details" secondary documentation page is appropriate.
Original comment by jaguar3s...@gmail.com
on 6 Nov 2012 at 6:41
Issue 549 as old as May 24, 2011 suggested
Serial.print(n, HEX, 3);
Original comment by jaguar3s...@gmail.com
on 6 Nov 2012 at 6:48
Before print() gets completely huge, perhaps we should just import/allow
printf() ?
avr-size /tmp/applet/Print.cpp.o
text data bss dec hex filename
1710 2 0 1712 6b0 /tmp/applet/Print.cpp.o
avr-size /sw/cross/avr/lib/libprintf_min.a
text data bss dec hex filename
687 0 0 687 2af vfprintf_min.o (ex /sw/cross/avr/lib/libprintf_min.a)
avr-size /sw/cross/avr/lib/libprintf_flt.a
text data bss dec hex filename
1912 0 0 1912 778 vfprintf_flt.o (ex /sw/cross/avr/lib/libprintf_flt.a)
Original comment by wes...@gmail.com
on 7 Nov 2012 at 1:39
Original issue reported on code.google.com by
dale.cal...@gmail.com
on 5 Nov 2012 at 10:22