From ec5ce74e8253819e2b847b5713c217b80275c31f Mon Sep 17 00:00:00 2001
From: "Brian S. Dean" <bsd@bsdhome.com>
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@262 81a1dc3b-b13d-400b-aceb-764788c761c2
---
 avrdude/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/avrdude/main.c b/avrdude/main.c
index dee28528..b4107132 100644
--- a/avrdude/main.c
+++ b/avrdude/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;
     }