From 1563efd9881e4e6f8fd54d968c24bcbe975e9b5c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 20 Aug 2015 15:57:11 +1000 Subject: [PATCH] hidpp10: request individual features Not doing anything with it, this is just playing around. Signed-off-by: Peter Hutterer --- src/hidpp10.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hidpp10.c b/src/hidpp10.c index 6dac02c6..593a9b59 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -225,6 +225,7 @@ static int hidpp10_get_device_info(struct ratbag_device *device, struct hidpp10_ union hidpp10_message firmware_information = CMD_DEVICE_FIRMWARE_INFORMATION(idx, FIRMWARE_INFO_ITEM_FW_NAME_AND_VERSION(1)); union hidpp10_message build_information = CMD_DEVICE_FIRMWARE_INFORMATION(idx, FIRMWARE_INFO_ITEM_FW_BUILD_NUMBER(1)); union hidpp10_message notifications = CMD_HIDPP_NOTIFICATIONS(idx, GET_REGISTER_REQ); + union hidpp10_message features = CMD_ENABLE_INDIVIDUAL_FEATURES(idx, GET_REGISTER_REQ); size_t name_size; int res; @@ -265,6 +266,10 @@ static int hidpp10_get_device_info(struct ratbag_device *device, struct hidpp10_ if (res) return 0; + res = hidpp10_request_command(device, &features); + if (res) + return 0; + return 0; }