1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-29 10:23:45 +02:00

DCCPacket: Print to USB_SERIAL in HEX

This commit is contained in:
Harald Barth
2025-06-28 21:55:30 +02:00
parent e6c6f78bb6
commit 6a361872e2
3 changed files with 11 additions and 7 deletions

View File

@@ -42,7 +42,8 @@ bool DCCDecoder::parse(DCCPacket &p) {
for (byte n = 0; n < p.len(); n++)
checksum ^= d[n];
if (checksum) { // Result should be zero, if not it's an error!
DIAG(F("Checksum error"));
DIAG(F("Checksum error:"));
p.print();
return false;
}