If the stk500 is being used, default to using the first serial port.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@167 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2002-12-07 15:16:24 +00:00
parent 3e44abacfd
commit 2a36b78f1b
2 changed files with 14 additions and 7 deletions

5
main.c
View File

@@ -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 */