From 02aa33e2a45456fc0d7605dc96ae429fa51d6276 Mon Sep 17 00:00:00 2001 From: bdean Date: Wed, 5 Mar 2003 04:57:03 +0000 Subject: [PATCH] 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/avrdude@262 81a1dc3b-b13d-400b-aceb-764788c761c2 --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index dee28528..b4107132 100644 --- a/main.c +++ b/main.c @@ -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; }