Increased the speed of both software and hardware TPI/PDI programming modes of the...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / V2Protocol.c
index cea42ea..f7e5e81 100644 (file)
@@ -42,6 +42,8 @@ uint32_t CurrentAddress;
 /** Flag to indicate that the next read/write operation must update the device's current address */\r
 bool MustSetAddress;\r
 \r
+bool CommandTimedOut;\r
+\r
 /** Initializes the hardware and software associated with the V2 protocol command handling. */\r
 void V2Protocol_Init(void)\r
 {\r
@@ -68,6 +70,8 @@ void V2Protocol_ProcessCommand(void)
 {\r
        uint8_t V2Command = Endpoint_Read_Byte();\r
        \r
+       CommandTimedOut = false;\r
+       \r
        switch (V2Command)\r
        {\r
                case CMD_SIGN_ON:\r