diff options
Diffstat (limited to 'cross/avrdude/patches/patch-ag')
-rw-r--r-- | cross/avrdude/patches/patch-ag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cross/avrdude/patches/patch-ag b/cross/avrdude/patches/patch-ag new file mode 100644 index 00000000000..f0e82863b3b --- /dev/null +++ b/cross/avrdude/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.3 2010/01/26 02:01:47 jakllsch Exp $ +Work around AVRISP mkII sync stalls on NetBSD. +--- stk500v2.c.orig 2009-07-10 22:39:37.000000000 +0000 ++++ stk500v2.c +@@ -635,6 +635,8 @@ retry: + // send the sync command and see if we can get there + buf[0] = CMD_SIGN_ON; + stk500v2_send(pgm, buf, 1); ++ stk500v2_drain(pgm, 0); ++ stk500v2_send(pgm, buf, 1); + + // try to get the response back and see where we got + status = stk500v2_recv(pgm, resp, sizeof(resp)); |