Add new HID_Device_MillisecondElapsed() function to the HID device Class driver,...
[pub/lufa.git] / Projects / Magstripe / Magstripe.c
index 898ad3c..6d463d6 100644 (file)
@@ -153,8 +153,7 @@ void EVENT_USB_UnhandledControlPacket(void)
 /** Timer 0 CTC ISR, firing once each millisecond to keep track of elapsed idle time in the HID interface. */\r
 ISR(TIMER0_COMPA_vect, ISR_BLOCK)\r
 {\r
-       if (Keyboard_HID_Interface.State.IdleMSRemaining)\r
-         Keyboard_HID_Interface.State.IdleMSRemaining--;\r
+       HID_Device_MillisecondElapsed(&Keyboard_HID_Interface);\r
 }\r
 \r
 /** HID Class driver callback function for the creation of a HID report for the host.\r