mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
protocol == 1 it's never reached because b is never == 512
This commit is contained in:
1 parent
4860c2685d
commit
58f99d5660
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user