Add new tag for the LUFA-120219-BETA release.
[pub/lufa.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGTarget.c
index 0ba3c76..ede2362 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
@@ -155,6 +155,9 @@ uint8_t XPROGTarget_ReceiveByte(void)
        /* Wait until a byte has been received before reading */
        while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired));
 
+       /* Byte of data received - reset the timeout */
+       wdt_reset();
+
        return UDR1;
 }