Merge pull request #2021 from MX682X/main

Add delay after fuse writes to fix Attiny15 readback
This commit is contained in:
Stefan Rueger
2025-06-20 22:29:03 +02:00
committed by GitHub

View File

@@ -1637,6 +1637,14 @@ static int pickit5_isp_write_fuse(const PROGRAMMER *pgm, const AVRMEM *mem, unsi
pmsg_error("failed to start fuse write operation(%d)\n", my.rxBuf[24]);
return -1;
}
/* fix slow AVRs without write status polling. Performance impact shouldn't be
* noticable, as it's just for fuse writes and less then 10ms per fuse
*/
int delay = mem->min_write_delay;
if (delay > 0) {
usleep(delay);
}
return 1;
}