mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidpp20: properly handle errors
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -91,7 +91,8 @@ hidpp20_request_command(struct ratbag_device *device, union hidpp20_message *msg
|
||||
|
||||
/* error */
|
||||
if (read_buffer.msg.sub_id == __ERROR_MSG &&
|
||||
(read_buffer.msg.parameters[0] & 0x0f) == (read_buffer.msg.address & 0x0f)) {
|
||||
read_buffer.msg.address == msg->msg.sub_id &&
|
||||
read_buffer.msg.parameters[0] == msg->msg.address) {
|
||||
hidpp_err = read_buffer.msg.parameters[1];
|
||||
log_error(ratbag,
|
||||
" HID++ error from the device (%d): %s (%02x)\n",
|
||||
|
||||
Reference in New Issue
Block a user