protocol == 1 it's never reached because b is never == 512

This commit is contained in:
Andrea campanella committed 2026-04-10 18:31:03 +01:00
1 parent 4860c2685d
commit 58f99d5660
1 file changed
+1 -1
+1 -1
View File
@@ -628,7 +628,7 @@ static int write_firmware(const char* fw_filename)
return 14;
}
for (uint16_t b = 0; b < 512; ++b) {
for (uint16_t b = 0; b < 511; ++b) {
// Write firmware byte
outp(DATA_PORT_HIGH, uf2_buf.buf[b]);
if (b == 512 && protocol == 1) {