Oops - with new changes to the way the device Configuration Descriptor is retrieved...
[pub/USBasp.git] / Projects / AVRISP / Lib / V2ProtocolTarget.c
index 9c6ccf4..24cd941 100644 (file)
@@ -155,13 +155,15 @@ uint8_t V2Protocol_WaitWhileTargetBusy(void)
 {\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
-               bool DeviceBusy = (SPI_ReceiveByte() & 0x01);\r
+               DeviceBusy = (SPI_ReceiveByte() & 0x01);\r
        }\r
        while (DeviceBusy && (TCNT0 < TARGET_BUSY_TIMEOUT_MS));\r
 \r