From d8e22daf369bb5c0485743911d3592bc072c1912 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 15 Dec 2014 21:18:07 +0100 Subject: unifying: fix HID++ 2.0 error reporting Signed-off-by: Peter Wu --- hw/usb/hid-logitech-dj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c index 5d0b6bebf2..067f1cd73a 100644 --- a/hw/usb/hid-logitech-dj.c +++ b/hw/usb/hid-logitech-dj.c @@ -579,8 +579,8 @@ static void hidpp20_queue_error(USBLtunifyState *s, Hidpp20Msg *func, uint8_t er .report_id = func->report_id, .device_index = func->device_index, .feat_index = 0xFF, - .func = func->func, - .params = { err } + .func = func->feat_index, + .params = { func->func, err } }; hidpp_queue_output_report(s, (HidppMsg *) &error_report); -- cgit v1.2.1