[fixup] Extract hexDump function

This commit is contained in:
Fabian Müller 2024-04-12 03:21:52 +02:00
parent 7f7959778c
commit 281aab33b8

View File

@ -312,13 +312,5 @@ void sendTextToSign(
Serial1.print(toSend);
Serial.println("Text sent to device: " + toSend);
Serial.print("Hex dump: ");
for (size_t i = 0; i < toSend.length(); ++i) {
auto hexChar = String(toSend[i], HEX);
if (hexChar.length() == 1) {
hexChar = '0' + hexChar;
}
Serial.print(hexChar + ' ');
}
Serial.println();
Serial.println("Hex dump: " + hexDump(toSend));
}