mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidpp10: request individual features
Not doing anything with it, this is just playing around. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user