Skip to content

Commit e618cec

Browse files
committed
Warn if both -i and -B are set
1 parent a162639 commit e618cec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pickit2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ static int pickit2_open(PROGRAMMER *pgm, const char *port) {
203203
}
204204
#endif
205205

206+
if(pgm->ispdelay > 0 && pgm->bitclock > 0.0)
207+
pmsg_warning("both -i delay and -B bitrate set; ignoring -B\n");
208+
206209
if(pgm->ispdelay > 0) {
207210
my.clock_period = MIN(pgm->ispdelay, 255);
208211
} else if(pgm->bitclock > 0.0) {

0 commit comments

Comments
 (0)