diff options
author | Arkadiusz Miśkiewicz <arekm@maven.pl> | 2013-03-20 22:22:54 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2013-03-21 16:23:46 +0000 |
commit | 28f396496a90705b0d8823707396731fe60d85bc (patch) | |
tree | c05f0c3eab1b062a75b916b15600bebbd5850d78 | |
parent | 232d70155c45d24afabe47ed37954cc000678295 (diff) | |
download | upower-28f396496a90705b0d8823707396731fe60d85bc.tar.gz |
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>
-rw-r--r-- | src/linux/hidpp-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/hidpp-device.c b/src/linux/hidpp-device.c index 0a27dbf..1bcefab 100644 --- a/src/linux/hidpp-device.c +++ b/src/linux/hidpp-device.c @@ -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) { |