mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 17:34:56 +00:00
If the stk500 is being used, default to using the first serial port.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@167 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -515,6 +515,11 @@ int main(int argc, char * argv [])
|
||||
switch (ch) {
|
||||
case 'c': /* pin configuration */
|
||||
pinconfig = optarg;
|
||||
if (strcmp(pinconfig, "stk500") == 0) {
|
||||
if (port == DEFAULT_PARALLEL) {
|
||||
port = DEFAULT_SERIAL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'C': /* pin configuration file */
|
||||
|
||||
Reference in New Issue
Block a user