forked from mirror/qmk_firmware
Make sure that long reads are aborted early if the connection times out while waiting on more bytes in the AVRISP MKII clone project.
This commit is contained in:
@@ -338,6 +338,9 @@ uint8_t XPROGTarget_ReceiveByte(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (TimeoutMSRemaining)
|
||||
TimeoutMSRemaining = COMMAND_TIMEOUT_MS;
|
||||
|
||||
return UDR1;
|
||||
#else
|
||||
/* Wait until a byte has been received before reading */
|
||||
|
||||
Reference in New Issue
Block a user