mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 17:34:56 +00:00
Submitted by Stefan Tomanek:
patch #7542: add default_bitclock to configuration files git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@988 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -314,6 +314,7 @@ int main(int argc, char * argv [])
|
||||
|
||||
default_parallel[0] = 0;
|
||||
default_serial[0] = 0;
|
||||
default_bitclock = 0.0;
|
||||
|
||||
init_config();
|
||||
|
||||
@@ -607,6 +608,10 @@ int main(int argc, char * argv [])
|
||||
}
|
||||
}
|
||||
}
|
||||
// set bitclock from configuration files unless changed by command line
|
||||
if (default_bitclock > 0 && bitclock == 0.0) {
|
||||
bitclock = default_bitclock;
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
Reference in New Issue
Block a user