mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-21 16:46:30 +03:00
Inform which option is used instead which one is ignored
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user