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:
parent
89f16f5d7f
commit
25ac76a251
8 changed files with 36 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue