projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops - with new changes to the way the device Configuration Descriptor is retrieved...
[pub/USBasp.git]
/
Projects
/
AVRISP
/
Lib
/
V2ProtocolTarget.c
diff --git
a/Projects/AVRISP/Lib/V2ProtocolTarget.c
b/Projects/AVRISP/Lib/V2ProtocolTarget.c
index
9c6ccf4
..
24cd941
100644
(file)
--- a/
Projects/AVRISP/Lib/V2ProtocolTarget.c
+++ b/
Projects/AVRISP/Lib/V2ProtocolTarget.c
@@
-155,13
+155,15
@@
uint8_t V2Protocol_WaitWhileTargetBusy(void)
{
\r
TCNT0 = 0;
\r
\r
{
\r
TCNT0 = 0;
\r
\r
+ bool DeviceBusy;
\r
+
\r
do
\r
{
\r
SPI_SendByte(0xF0);
\r
SPI_SendByte(0x00);
\r
\r
SPI_SendByte(0x00);
\r
do
\r
{
\r
SPI_SendByte(0xF0);
\r
SPI_SendByte(0x00);
\r
\r
SPI_SendByte(0x00);
\r
-
bool
DeviceBusy = (SPI_ReceiveByte() & 0x01);
\r
+ DeviceBusy = (SPI_ReceiveByte() & 0x01);
\r
}
\r
while (DeviceBusy && (TCNT0 < TARGET_BUSY_TIMEOUT_MS));
\r
\r
}
\r
while (DeviceBusy && (TCNT0 < TARGET_BUSY_TIMEOUT_MS));
\r
\r