Ver código fonte

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 anos atrás
pai
commit
8ee2612ebb
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      Marlin/hex_print_routines.cpp

+ 3
- 3
Marlin/hex_print_routines.cpp Ver arquivo

@@ -27,10 +27,10 @@
27 27
 #include "hex_print_routines.h"
28 28
 
29 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 32
   else
33
-    SERIAL_ECHO((char)('A' + n - 10));
33
+    SERIAL_CHAR('A' + n - 10);
34 34
   delay(3);
35 35
 }
36 36
 

Carregando…
Cancelar
Salvar