device: correctly determine whether to ping with a long HID++ message
This commit is contained in:
parent
eacbfbd178
commit
3974f1eb4e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue