From f366d16c756dc7c3f2e219a0e058b960c88c357f Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 21 Sep 2005 15:02:02 +0000 Subject: [PATCH] Add the forgotten -B option (JTAG bit clock) to the getopt() option string. Actually evaluate that number as microseconds then, as the documentation used to state already. While being there, re-sort the -s option into alphabetical order. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@527 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 5 +++++ avrdude/main.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index a5f0fc00..3c810ba6 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,8 @@ +2005-09-21 Joerg Wunsch + + * main.c: Add the forgotten -B option to the option string in + getopt(); sort the -s option into order. + 2005/09/21 Brian S. Dean * avr.c: diff --git a/avrdude/main.c b/avrdude/main.c index 98dcd5fa..29d20742 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -835,7 +835,7 @@ int main(int argc, char * argv []) /* * process command line arguments */ - while ((ch = getopt(argc,argv,"?b:c:C:DeE:Fnp:P:qtU:suvVyY:")) != -1) { + while ((ch = getopt(argc,argv,"?b:B:c:C:DeE:Fnp:P:qstU:uvVyY:")) != -1) { switch (ch) { case 'b': /* override default programmer baud rate */ @@ -1163,7 +1163,7 @@ int main(int argc, char * argv []) if (verbose) { fprintf(stderr, "%sSetting bit clk period: %.1f\n", progbuf, bitclock); } - pgm->bitclock = bitclock; + pgm->bitclock = bitclock * 1e-6; } rc = pgm->open(pgm, port);