diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-30 14:59:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-30 14:59:57 +0000 |
commit | 7df6b9563c7aed504b34f42bc46d01e051051bdd (patch) | |
tree | 793ba54650d14eaeb2c262e8d48e4c06f5fd79ac /Projects | |
parent | 7227e133a9cf8d4de1214671211a0d93edb2b4bc (diff) | |
download | lufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.tar.gz lufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.tar.bz2 lufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.zip |
Add new HID_Device_MillisecondElapsed() function to the HID device Class driver, to move the burden of managing the Idle period of each instance to the library and not the user application.
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/Magstripe/Magstripe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Projects/Magstripe/Magstripe.c b/Projects/Magstripe/Magstripe.c index 898ad3c39..6d463d6a8 100644 --- a/Projects/Magstripe/Magstripe.c +++ b/Projects/Magstripe/Magstripe.c @@ -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. */
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
{
- if (Keyboard_HID_Interface.State.IdleMSRemaining)
- Keyboard_HID_Interface.State.IdleMSRemaining--;
+ HID_Device_MillisecondElapsed(&Keyboard_HID_Interface);
}
/** HID Class driver callback function for the creation of a HID report for the host.
|