Minor changes to the AVRISP project for code clarity.
[pub/USBasp.git] / Projects / AVRISP / AVRISP.c
index 44b8356..4eb02d2 100644 (file)
@@ -120,11 +120,11 @@ void Process_AVRISP_Commands(void)
 
        Endpoint_SelectEndpoint(AVRISP_DATA_EPNUM);\r
        
-       /* Check to see if a V2 Protocol command has been received - if not, abort */
-       if (!(Endpoint_IsOUTReceived()))
-         return;
-
-       /* Pass off processing of the V2 Protocol command to the V2 Protocol handler */
-       V2Protocol_ProcessCommand();\r
+       /* Check to see if a V2 Protocol command has been received */
+       if (Endpoint_IsOUTReceived())\r
+       {
+               /* Pass off processing of the V2 Protocol command to the V2 Protocol handler */
+               V2Protocol_ProcessCommand();\r
+       }\r
 }