mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 12:28:41 +03:00
Fix byte writes to TPI lockbits for jpag3.c
This commit is contained in:
10
src/jtag3.c
10
src/jtag3.c
@@ -3038,10 +3038,12 @@ static int jtag3_write_byte_tpi(const PROGRAMMER *pgm, const AVRPART *p, const A
|
||||
return -1;
|
||||
}
|
||||
|
||||
status = jtag3_erase_tpi(pgm, p, mem, addr);
|
||||
if (status < 0) {
|
||||
pmsg_error("error in communication, received status 0x%02x\n", status);
|
||||
return -1;
|
||||
if (mem_is_a_fuse(mem) || mem_is_flash(mem)) {
|
||||
status = jtag3_erase_tpi(pgm, p, mem, addr);
|
||||
if (status < 0) {
|
||||
pmsg_error("error in communication, received status 0x%02x\n", status);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
paddr = mem->offset + addr;
|
||||
|
||||
Reference in New Issue
Block a user