mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-04 11:47:59 +02:00
Detection of version 1 hid++ is not returned to the caller
HID++ version 1 was properly detected but that information wasn't reaching caller. Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl> Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
232d70155c
commit
28f396496a
1 changed files with 2 additions and 2 deletions
|
|
@ -314,9 +314,9 @@ hidpp_device_cmd (HidppDevice *device,
|
|||
buf[2] == HIDPP_ERR_INVALID_SUBID &&
|
||||
buf[3] == 0x00 &&
|
||||
buf[4] == HIDPP_FEATURE_ROOT_FN_PING) {
|
||||
/* HID++ 1.0 ping reply, so fake success */
|
||||
/* HID++ 1.0 ping reply, so fake success with version 1 */
|
||||
if (buf[5] == HIDPP_ERROR_CODE_UNKNOWN) {
|
||||
buf[0] = 1;
|
||||
response_data[0] = 1;
|
||||
goto out;
|
||||
}
|
||||
if (buf[5] == HIDPP_ERROR_CODE_UNSUPPORTED) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue