Prettier codebits debugging
This commit is contained in:
parent
d60e5c89d8
commit
bc4fa3984b
@ -123,10 +123,9 @@ public:
|
|||||||
param[ind] = ptr ? ptr - command_ptr : 0; // parameter offset or 0
|
param[ind] = ptr ? ptr - command_ptr : 0; // parameter offset or 0
|
||||||
#if ENABLED(DEBUG_GCODE_PARSER)
|
#if ENABLED(DEBUG_GCODE_PARSER)
|
||||||
if (codenum == 800) {
|
if (codenum == 800) {
|
||||||
const uint16_t * const adr = (uint16_t*)&codebits;
|
|
||||||
SERIAL_ECHOPAIR("Set bit ", (int)ind);
|
SERIAL_ECHOPAIR("Set bit ", (int)ind);
|
||||||
SERIAL_ECHOPAIR(" of codebits (", hex_address((void*)adr[1]));
|
SERIAL_ECHOPAIR(" of codebits (", hex_address((void*)(codebits >> 16)));
|
||||||
print_hex_word(adr[0]);
|
print_hex_word((uint16_t)(codebits & 0xFFFF));
|
||||||
SERIAL_ECHOLNPAIR(") | param = ", (int)param[ind]);
|
SERIAL_ECHOLNPAIR(") | param = ", (int)param[ind]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user