1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

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:
Roxy-3D 2017-03-23 15:57:57 -05:00 committed by Roxy-3D
parent b8e4a6970b
commit 8ee2612ebb

View File

@ -27,10 +27,10 @@
#include "hex_print_routines.h" #include "hex_print_routines.h"
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);
} }