mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user