Oops - don't reset AVRISP-MKII timeout in XPROG mode, as this is synchronous serial and data is always received regardless of attached or non-attached target.

pull/1469/head
Dean Camera 13 years ago
parent 2f036ae2bf
commit b7f4370c8e

@ -155,9 +155,6 @@ uint8_t XPROGTarget_ReceiveByte(void)
/* Wait until a byte has been received before reading */ /* Wait until a byte has been received before reading */
while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired)); while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired));
/* Byte of data received - reset the timeout */
wdt_reset();
return UDR1; return UDR1;
} }

Loading…
Cancel
Save