Warn on ispdelay and no HAS_BITCLOCK_ADJ

This commit is contained in:
stefanrueger
2025-05-10 00:44:30 +02:00
parent c434b9ae2b
commit d8cdb23869
2 changed files with 2 additions and 1 deletions

View File

@@ -1197,6 +1197,7 @@ static int jtagmkII_initialize(const PROGRAMMER *pgm, const AVRPART *p) {
serial_setparams(&pgm->fd, pgm->baudrate, SERIAL_8N1);
}
}
if(pgm->bitclock) {
if(pgm->flag & PGM_FL_IS_JTAG) {
if(!(pgm->extra_features & HAS_BITCLOCK_ADJ))

View File

@@ -169,7 +169,7 @@ static void pickit2_teardown(PROGRAMMER *pgm) {
}
static int pickit2_open(PROGRAMMER *pgm, const char *port) {
if(pgm->bitclock && !(pgm->extra_features & HAS_BITCLOCK_ADJ))
if((pgm->ispdelay > 0 || pgm->bitclock > 0) && !(pgm->extra_features & HAS_BITCLOCK_ADJ))
pmsg_warning("setting bitclock despite HAS_BITCLOCK_ADJ missing in pgm->extra_features\n");
#ifdef WIN32