File avrdude-use-serial-device-for-serbb 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(-)

--- a/main.c
+++ b/main.c
@@ -626,7 +626,8 @@ int main(int argc, char * argv [])
   if ((strcmp(pgm->type, "STK500") == 0) ||
       (strcmp(pgm->type, "avr910") == 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;
     }
openSUSE Build Service is sponsored by