From 3974f1eb4e18fb5fc4129162f1b81586b4f3ed32 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sat, 31 Dec 2022 08:39:49 -0500 Subject: [PATCH] device: correctly determine whether to ping with a long HID++ message --- lib/logitech_receiver/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/device.py b/lib/logitech_receiver/device.py index 93a40cdb..d03144f1 100644 --- a/lib/logitech_receiver/device.py +++ b/lib/logitech_receiver/device.py @@ -442,7 +442,7 @@ class Device: def ping(self): """Checks if the device is online, returns True of False""" - long = self.bluetooth or self._protocol is not None and self._protocol >= 2.0 + long = self.bluetooth or self.hidpp_short is False or self._protocol is not None and self._protocol >= 2.0 protocol = _base.ping(self.handle or self.receiver.handle, self.number, long_message=long) self.online = protocol is not None if protocol: