projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Device mode HID Class driver always sending IN reports, even when no data is...
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Device
/
HID.c
diff --git
a/LUFA/Drivers/USB/Class/Device/HID.c
b/LUFA/Drivers/USB/Class/Device/HID.c
index
0cbd50a
..
b44d4db
100644
(file)
--- 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;
\r
\r
if (ReportID)
\r
HIDInterfaceInfo->State.IdleMSRemaining = HIDInterfaceInfo->State.IdleCount;
\r
\r
if (ReportID)
\r
- Endpoint_Write_
Stream_LE(&ReportID, sizeof(ReportID), NO_STREAM_CALLBACK
);
\r
+ Endpoint_Write_
Byte(ReportID
);
\r
\r
Endpoint_Write_Stream_LE(ReportINData, ReportINSize, NO_STREAM_CALLBACK);
\r
\r
Endpoint_Write_Stream_LE(ReportINData, ReportINSize, NO_STREAM_CALLBACK);
\r
+
\r
+ Endpoint_ClearIN();
\r
}
\r
}
\r
-
\r
- Endpoint_ClearIN();
\r
}
\r
}
\r
\r
}
\r
}
\r
\r