Commit for the 100807 release.
[pub/USBasp.git] / Demos / Device / Incomplete / Sideshow / Sideshow.c
index 2972e0c..f6ece61 100644 (file)
@@ -115,7 +115,6 @@ void EVENT_USB_Device_ConfigurationChanged(void)
 
 void EVENT_USB_Device_UnhandledControlRequest(void)
 {
-       /* Process UFI specific control requests */
        switch (USB_ControlRequest.bRequest)
        {
                case REQ_GetOSFeatureDescriptor:
@@ -123,7 +122,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
                        {
                                void*    DescriptorPointer;
                                uint16_t DescriptorSize = USB_GetOSFeatureDescriptor(USB_ControlRequest.wValue, USB_ControlRequest.wIndex,
-                                                                                    &DescriptorPointer, &DescriptorSize);
+                                                                                    &DescriptorPointer);
 
                                if (DescriptorSize == NO_DESCRIPTOR)
                                  return;
@@ -131,7 +130,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
                                Endpoint_ClearSETUP();
                                
                                Endpoint_Write_Control_PStream_LE(DescriptorPointer, DescriptorSize);
-                               Endpoint_ClearOUT();                            
+                               Endpoint_ClearOUT();
                        }
 
                        break;