mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Patch hex_print
This commit is contained in:
parent
97cb0a8c3e
commit
b84c69072e
@ -78,7 +78,7 @@ void print_hex_byte(const uint8_t b) { SERIAL_ECHO(hex_byte(b)); }
|
|||||||
void print_hex_word(const uint16_t w) { SERIAL_ECHO(hex_word(w)); }
|
void print_hex_word(const uint16_t w) { SERIAL_ECHO(hex_word(w)); }
|
||||||
void print_hex_address(const void * const w) { SERIAL_ECHO(hex_address(w)); }
|
void print_hex_address(const void * const w) { SERIAL_ECHO(hex_address(w)); }
|
||||||
|
|
||||||
void print_hex_long(const uintptr_t w, const char delimiter) {
|
void print_hex_long(const uint32_t w, const char delimiter) {
|
||||||
SERIAL_ECHOPGM("0x");
|
SERIAL_ECHOPGM("0x");
|
||||||
for (int B = 24; B >= 8; B -= 8){
|
for (int B = 24; B >= 8; B -= 8){
|
||||||
print_hex_byte(w >> B);
|
print_hex_byte(w >> B);
|
||||||
|
Loading…
Reference in New Issue
Block a user