diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 06:36:01 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 06:36:01 +0000 |
commit | 665fe11f128b95874befdd59492379a0f5d8105e (patch) | |
tree | b9350cbffc45b59ea91bda94f16b7deed7928e9a /LUFA/Drivers | |
parent | 8ea5c631c8d690df48c15a4dea12777c5929c19d (diff) | |
download | lufa-665fe11f128b95874befdd59492379a0f5d8105e.tar.gz lufa-665fe11f128b95874befdd59492379a0f5d8105e.tar.bz2 lufa-665fe11f128b95874befdd59492379a0f5d8105e.zip |
Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported.
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/HID.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/HID.c b/LUFA/Drivers/USB/Class/Device/HID.c index 0cbd50afc..b44d4db63 100644 --- a/LUFA/Drivers/USB/Class/Device/HID.c +++ b/LUFA/Drivers/USB/Class/Device/HID.c @@ -168,12 +168,12 @@ void HID_Device_USBTask(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo) HIDInterfaceInfo->State.IdleMSRemaining = HIDInterfaceInfo->State.IdleCount;
if (ReportID)
- Endpoint_Write_Stream_LE(&ReportID, sizeof(ReportID), NO_STREAM_CALLBACK);
+ Endpoint_Write_Byte(ReportID);
Endpoint_Write_Stream_LE(ReportINData, ReportINSize, NO_STREAM_CALLBACK);
+
+ Endpoint_ClearIN();
}
-
- Endpoint_ClearIN();
}
}
|