device: consult polling rate feature for polling rate

This commit is contained in:
Peter F. Patel-Schneider 2022-05-27 15:35:28 -04:00
parent 15d383ad30
commit 42faf0c3a0
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class Device:
def polling_rate(self): def polling_rate(self):
if not self._polling_rate: if not self._polling_rate:
self.update_pairing_information() self.update_pairing_information()
if not self._polling_rate and self.protocol >= 2.0: if self.protocol >= 2.0:
rate = _hidpp20.get_polling_rate(self) rate = _hidpp20.get_polling_rate(self)
self._polling_rate = rate if rate else self._polling_rate self._polling_rate = rate if rate else self._polling_rate
return self._polling_rate return self._polling_rate