Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct...
[pub/USBasp.git] / Demos / Device / ClassDriver / GenericHID / GenericHID.c
index 72063b6..4315723 100644 (file)
@@ -48,8 +48,6 @@ USB_ClassInfo_HID_Device_t Generic_HID_Interface =
 \r
                                .ReportINEndpointNumber  = GENERIC_IN_EPNUM,\r
                                .ReportINEndpointSize    = GENERIC_EPSIZE,\r
-                               \r
-                               .ReportINBufferSize      = GENERIC_REPORT_SIZE,\r
                        },\r
        };\r
 \r
@@ -120,8 +118,7 @@ void EVENT_USB_UnhandledControlPacket(void)
 /** ISR to keep track of each millisecond interrupt, for determining the HID class idle period remaining when set. */\r
 ISR(TIMER0_COMPA_vect, ISR_BLOCK)\r
 {\r
-       if (Generic_HID_Interface.State.IdleMSRemaining)\r
-         Generic_HID_Interface.State.IdleMSRemaining--;\r
+       HID_Device_MillisecondElapsed(&Generic_HID_Interface);\r
 }\r
 \r
 /** HID class driver callback function for the creation of HID reports to the host.\r