Update file header copyrights for 2012.
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGTarget.c
index 0ba3c76..471ebee 100644 (file)
@@ -1,6 +1,6 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
@@ -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;
 }