From e01c51bbc6492cbbe6e3594b8bce9ed5930d8d8e Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Fri, 7 Nov 2025 21:43:41 -0500 Subject: [PATCH] Add missing newline; Turn an error into a WARN - Added missing newline to a delay packet warning. - Turned the error for the invalid checksum on a delay packet into a warning. --- rom/decoder.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rom/decoder.go b/rom/decoder.go index 615e937..0911bc0 100644 --- a/rom/decoder.go +++ b/rom/decoder.go @@ -114,7 +114,7 @@ func decodeDelay(page *Page, data []byte, idx int) (Packet, int, error) { count++ } if count%2 != 0 { - fmt.Printf("0xAA delay packet at offset %08X has odd number of 0xAA's", idx+page.FileOffset) + fmt.Printf("0xAA delay packet at offset %08X has odd number of 0xAA's\n", idx+page.FileOffset) } pd := &packetDelay{ Length: count, @@ -123,8 +123,10 @@ func decodeDelay(page *Page, data []byte, idx int) (Packet, int, error) { checksum := calcChecksum(data[idx : idx+count+3]) if checksum != 0xC5 { - return nil, 0, fmt.Errorf("Invalid checksum for delay packet starting at offset %08X. Got %02X, expected %02X", - pd.address, checksum, 0xC5) + // return nil, 0, fmt.Errorf("Invalid checksum for delay packet starting at offset %08X. Got %02X, expected %02X", + // pd.address, checksum, 0xC5) + fmt.Printf("WARN: Invalid checksum for delay packet starting at offset %08X. Got %02X, expected %02X\n", + pd.address, checksum, 0xC5) } idx += count + 3