device: correctly determine whether to ping with a long HID++ message

This commit is contained in:
Peter F. Patel-Schneider 2022-12-31 08:39:49 -05:00
parent eacbfbd178
commit 3974f1eb4e
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class Device:
def ping(self): def ping(self):
"""Checks if the device is online, returns True of False""" """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) protocol = _base.ping(self.handle or self.receiver.handle, self.number, long_message=long)
self.online = protocol is not None self.online = protocol is not None
if protocol: if protocol: