From 61b439e09ab92bebace0541a6a38562ac0b0a7fe Mon Sep 17 00:00:00 2001 From: jiyunomegami Date: Sat, 4 Jul 2020 01:25:52 +0900 Subject: [PATCH] add print_Msg_PaddedHex32 function --- Cart_Reader/Cart_Reader.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index ef3fb49..80f9e95 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -767,6 +767,13 @@ void print_Msg_PaddedHexByte(byte message) { print_Msg(message, HEX); } +void print_Msg_PaddedHex32(unsigned long message) { + print_Msg_PaddedHexByte((message >> 24) & 0xFF); + print_Msg_PaddedHexByte((message >> 16) & 0xFF); + print_Msg_PaddedHexByte((message >> 8) & 0xFF); + print_Msg_PaddedHexByte((message >> 0) & 0xFF); +} + void println_Msg(String string) { #ifdef enable_OLED