mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-22 00:56:21 +03:00
Warn on ispdelay and no HAS_BITCLOCK_ADJ
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user