Skip to content

Commit

Permalink
device: add connection request failed error to expected ping responses
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Oct 3, 2023
1 parent 09938eb commit 15f4733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logitech_receiver/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ def ping(handle, devnumber, long_message=False):
error = ord(reply_data[3:4])
if error == _hidpp10.ERROR.invalid_SubID__command: # a valid reply from a HID++ 1.0 device
return 1.0
if error == _hidpp10.ERROR.resource_error: # device unreachable
return
if error == _hidpp10.ERROR.resource_error or error == _hidpp10.ERROR.connection_request_failed:
return # device unreachable
if error == _hidpp10.ERROR.unknown_device: # no paired device with that number
_log.error('(%s) device %d error on ping request: unknown device', handle, devnumber)
raise NoSuchDevice(number=devnumber, request=request_id)
Expand Down

0 comments on commit 15f4733

Please sign in to comment.