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.
Roxy-3D 7 years ago
parent
commit
8ee2612ebb
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/hex_print_routines.cpp

+ 3
- 3
Marlin/hex_print_routines.cpp View File

27
 #include "hex_print_routines.h"
27
 #include "hex_print_routines.h"
28
 
28
 
29
 void prt_hex_nibble(uint8_t n) {
29
 void prt_hex_nibble(uint8_t n) {
30
-  if (n <= 9)
31
-    SERIAL_ECHO(n);
30
+  if (n <= 9) 
31
+    SERIAL_CHAR('0'+n);
32
   else
32
   else
33
-    SERIAL_ECHO((char)('A' + n - 10));
33
+    SERIAL_CHAR('A' + n - 10);
34
   delay(3);
34
   delay(3);
35
 }
35
 }
36
 
36
 

Loading…
Cancel
Save