Browse Source

serial_dump: include hex prefix

Yuri D'Elia 3 years ago
parent
commit
700825ff76
1 changed files with 2 additions and 2 deletions
  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);