mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
hid: Fix for incoming feature reports not parsed
Incoming feature reports were being ignored. I guess this patch won't fix any ticket because as far as I know, we are not reading/writing feature reports at any point. However, as I am trying to get i2c trackpads working, one of the solutions may be set the trackpad in a mouse-like compatible mode, while we rebuild Tablet handler for multi-touch reports Change-Id: I64e581f8264049552ffc804c208191c0521a766a Reviewed-on: https://review.haiku-os.org/c/haiku/+/8767 Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
8738012f43
commit
4c73b06622
@ -481,8 +481,10 @@ HIDParser::SetReport(status_t status, uint8 *report, size_t length)
|
||||
// transfer to happen needs to reschedule one now.
|
||||
for (int32 i = 0; i < fReports.Count(); i++) {
|
||||
if (fReports[i] == NULL
|
||||
|| fReports[i]->Type() != HID_REPORT_TYPE_INPUT)
|
||||
|| (fReports[i]->Type() != HID_REPORT_TYPE_INPUT
|
||||
&& fReports[i]->Type() != HID_REPORT_TYPE_FEATURE)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (fReports[i]->ID() == targetID)
|
||||
fReports[i]->SetReport(status, report, length);
|
||||
|
Loading…
Reference in New Issue
Block a user