Inform which option is used instead which one is ignored

This commit is contained in:
stefanrueger
2025-05-10 23:22:34 +02:00
parent 0f193353e0
commit ebc2dda11c
3 changed files with 3 additions and 3 deletions

View File

@@ -707,7 +707,7 @@ static int avrftdi_open(PROGRAMMER *pgm, const char *port) {
pmsg_warning("setting bitclock despite HAS_BITCLOCK_ADJ missing in pgm->extra_features\n");
if(pgm->baudrate && pgm->bitclock && (int) (1.0/pgm->bitclock) != pgm->baudrate)
pmsg_warning("both -b baudrate and -B bitrate set; ignoring -B\n");
pmsg_warning("both -b baudrate and -B bitrate set; using -b\n");
set_frequency(pdata,
pgm->baudrate? pgm->baudrate:

View File

@@ -363,7 +363,7 @@ static int ft245r_set_bitclock(const PROGRAMMER *pgm) {
pmsg_warning("setting bitclock despite HAS_BITCLOCK_ADJ missing in pgm->extra_features\n");
if(pgm->baudrate && pgm->bitclock && (int) (1.0/pgm->bitclock) != pgm->baudrate)
pmsg_warning("both -b baudrate and -B bitrate set; ignoring -b\n");
pmsg_warning("both -b baudrate and -B bitrate set; using -B\n");
// 150000 should work for all ftdi chips and the internal clock of 1 MHz
rate = pgm->bitclock? (int) (1.0/pgm->bitclock): pgm->baudrate? pgm->baudrate: 150000;

View File

@@ -204,7 +204,7 @@ 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");
pmsg_warning("both -i delay and -B bitrate set; using -i\n");
if(pgm->ispdelay > 0) {
my.clock_period = MIN(pgm->ispdelay, 255);