From a0f76f18f81807d1f0072adeab3941d375b1ef3f Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 20 Aug 2015 19:56:38 -0400 Subject: [PATCH] hidpp20: make the hidpp20_root_get_protocol_version compatible with bluetooth and corded Lokks like the G500 needs a device_idx of 0x00, and the MX Master while on Bluetooth only answers to report longs Signed-off-by: Benjamin Tissoires --- src/hidpp20.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hidpp20.c b/src/hidpp20.c index d36bd7f6..1b29bb7f 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -172,8 +172,8 @@ hidpp20_root_get_protocol_version(struct ratbag_device *device, { int rc; union hidpp20_message msg = { - .msg.report_id = REPORT_ID_SHORT, - .msg.device_idx = 0xff, + .msg.report_id = REPORT_ID_LONG, + .msg.device_idx = 0x00, .msg.sub_id = HIDPP_PAGE_ROOT_IDX, .msg.address = CMD_ROOT_GET_PROTOCOL_VERSION, };