Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
665fe11f
Commit
665fe11f
authored
Aug 27, 2009
by
Dean Camera
Browse files
Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported.
parent
8ea5c631
Changes
2
Hide whitespace changes
Inline
Side-by-side
LUFA/Drivers/USB/Class/Device/HID.c
View file @
665fe11f
...
...
@@ -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
();
}
}
...
...
LUFA/ManPages/ChangeLog.txt
View file @
665fe11f
...
...
@@ -39,6 +39,7 @@
* - Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient
* - Added hardware USART receive interrupt and software buffering to the Benito project to ensure received data is not
* missed or corrupted
* - Fixed Device mode HID Class driver always sending IN packets, even when nothing to report
*
*
* \section Sec_ChangeLog090810 Version 090810
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment