Check the programmer type against 'STK500' instead of the programmer
name when checking to see if we should default to the default_serial port instead of the default_parallel port. This has us do the right thing for the new 'avrisp' programmer. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@262 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
434d7badab
commit
ec5ce74e82
|
@ -609,7 +609,9 @@ int main(int argc, char * argv [])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (strcmp(programmer, "stk500") == 0) {
|
||||
fprintf(stderr, "programmer type = %s\n", pgm->type);
|
||||
|
||||
if (strcmp(pgm->type, "STK500") == 0) {
|
||||
if (port == default_parallel) {
|
||||
port = default_serial;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue