The hex nibble routine can print again!
The code to print a hex nibble got broke. SERIAL_ECHO( (char) ) isn't suitable for its use.
This commit is contained in:
parent
b8e4a6970b
commit
8ee2612ebb
1 changed files with 3 additions and 3 deletions
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
void prt_hex_nibble(uint8_t n) {
|
void prt_hex_nibble(uint8_t n) {
|
||||||
if (n <= 9)
|
if (n <= 9)
|
||||||
SERIAL_ECHO(n);
|
SERIAL_CHAR('0'+n);
|
||||||
else
|
else
|
||||||
SERIAL_ECHO((char)('A' + n - 10));
|
SERIAL_CHAR('A' + n - 10);
|
||||||
delay(3);
|
delay(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue