summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-hidpp20.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-03-24 11:54:01 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-03-24 11:54:01 +0100
commit614a271a24d7809f56b83817d1e926a8f4897a7c (patch)
treed88702e4bd120d7e0fe94239e12a98b4847ea127 /hw/usb/hid-logitech-hidpp20.c
parenta4a17543cee0f422b6348020d170d887f05e97fc (diff)
downloadqemu-614a271a24d7809f56b83817d1e926a8f4897a7c.tar.gz
unifying: fix report ID for HID++ 2.0 responses
The input report ID can be 0x10 or 0x11, the responses are always 0x11. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-hidpp20.c')
-rw-r--r--hw/usb/hid-logitech-hidpp20.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hid-logitech-hidpp20.c b/hw/usb/hid-logitech-hidpp20.c
index 95393050a5..9248f31bd1 100644
--- a/hw/usb/hid-logitech-hidpp20.c
+++ b/hw/usb/hid-logitech-hidpp20.c
@@ -130,6 +130,7 @@ int hidpp20_feature_call(LHidDevice *hd, Hidpp20Msg *func)
feat = &hd->info.features[func->feat_index - 1];
r = feat->callback(hd, func, fn, func->params);
}
+ func->report_id = HIDPP_LONG;
if (r > 0) {
// r are the parameters that must be kept, the others are cleared.
assert(r <= sizeof(func->params));