Reverted AVRISP-MKII clone project watchdog based command timeout patch in favour of a hardware timer, to allow for use in devices with WDTRST fuse programmed.

This commit is contained in:
Dean Camera 2012-04-01 13:39:04 +00:00
parent 89f16f5d7f
commit 25ac76a251
8 changed files with 36 additions and 29 deletions

View file

@ -153,7 +153,7 @@ uint8_t XPROGTarget_ReceiveByte(void)
XPROGTarget_SetRxMode();
/* Wait until a byte has been received before reading */
while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired));
while (!(UCSR1A & (1 << RXC1)) && TimeoutTicksRemaining);
return UDR1;
}