Warn if both -i and -B are set

This commit is contained in:
stefanrueger
2025-05-10 01:36:00 +02:00
parent a16263993e
commit e618cec731

View File

@@ -203,6 +203,9 @@ static int pickit2_open(PROGRAMMER *pgm, const char *port) {
}
#endif
if(pgm->ispdelay > 0 && pgm->bitclock > 0.0)
pmsg_warning("both -i delay and -B bitrate set; ignoring -B\n");
if(pgm->ispdelay > 0) {
my.clock_period = MIN(pgm->ispdelay, 255);
} else if(pgm->bitclock > 0.0) {