File avrdude-use-serial-device-for-serbb.patch of Package avrdude

From: Bernhard Walle <bernhard.walle@gmx.de>
Subject: [PATCH] Use default_serial for "serbb" programmers

This patch fixes the problem that "default_parport" device is used
even for "serbb" programmers like the "ponyser" device. That is wrong.


Signed-off-by: Bernhard Walle <bwalle@suse.de>

---
 main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: avrdude-5.10/main.c
===================================================================
--- avrdude-5.10.orig/main.c
+++ avrdude-5.10/main.c
@@ -683,7 +683,8 @@ int main(int argc, char * argv [])
       (strcmp(pgm->type, "avr910") == 0) ||
       (strcmp(pgm->type, "BusPirate") == 0) ||
       (strcmp(pgm->type, "STK500V2") == 0) ||
-      (strcmp(pgm->type, "JTAGMKII") == 0)) {
+      (strcmp(pgm->type, "JTAGMKII") == 0) ||
+      (strcmp(pgm->type, "SERBB") == 0)) {
     if (port == default_parallel) {
       port = default_serial;
     }