Explorar el Código

serial_dump: include hex prefix

Yuri D'Elia hace 2 años
padre
commit
700825ff76
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Firmware/Dcodes.cpp

+ 2 - 2
Firmware/Dcodes.cpp

@@ -998,9 +998,9 @@ void __attribute__((noinline)) serial_dump_and_reset(dump_crash_reason reason)
     SERIAL_ECHOLNPGM("D23 - emergency serial dump");
     SERIAL_ECHOPGM("error: ");
     MYSERIAL.print((uint8_t)reason, DEC);
-    MYSERIAL.print(" ");
+    SERIAL_ECHOPGM(" 0x");
     MYSERIAL.print(pc, HEX);
-    MYSERIAL.print(" ");
+    SERIAL_ECHOPGM(" 0x");
     MYSERIAL.println(sp, HEX);
 
     print_mem(0, RAMEND+1, dcode_mem_t::sram);