Browse Source

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.
pull/1/head
Roxy-3D 8 years ago
committed by Roxy-3D
parent
commit
8ee2612ebb
  1. 6
      Marlin/hex_print_routines.cpp

6
Marlin/hex_print_routines.cpp

@ -27,10 +27,10 @@
#include "hex_print_routines.h"
void prt_hex_nibble(uint8_t n) {
if (n <= 9)
SERIAL_ECHO(n);
if (n <= 9)
SERIAL_CHAR('0'+n);
else
SERIAL_ECHO((char)('A' + n - 10));
SERIAL_CHAR('A' + n - 10);
delay(3);
}

Loading…
Cancel
Save