From 1447b15ef4742392241ea51a4c99c7b4c3b95a0b Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Fri, 21 Apr 2023 10:37:06 -0400 Subject: [PATCH] device: remove assertion on last byte of ping responses --- lib/logitech_receiver/base.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index 0bdadda6..6bae3422 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -531,7 +531,6 @@ def ping(handle, devnumber, long_message=False): if report_id == HIDPP_SHORT_MESSAGE_ID and reply_data[:1] == b'\x8F' and \ reply_data[1:3] == request_data[:2]: # error response - assert reply_data[-1:] == b'\x00' 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