serial_dump: include hex prefix

This commit is contained in:
Yuri D'Elia 2021-06-19 13:57:40 +02:00
parent bff79d290a
commit 700825ff76

View File

@ -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);