Also set read_byte() to avr_read_byte_default() for old parts

This commit is contained in:
Stefan Rueger
2023-06-11 19:23:47 +01:00
parent 4d0914c872
commit 9cb93da3cf

View File

@@ -1806,8 +1806,10 @@ static void stk500v2_enable(PROGRAMMER *pgm, const AVRPART *p) {
} else {
stk600_setup_isp(pgm);
AVRMEM *mem = avr_locate_mem(p, "flash");
if(mem && mem->op[AVR_OP_WRITE_LO]) // Old part that can only write flash bytewise
if(mem && mem->op[AVR_OP_WRITE_LO]) { // Old part that can only write flash bytewise
pgm->write_byte = avr_write_byte_default;
pgm->read_byte = avr_read_byte_default;
}
}
}