receiver: don't check that device kind matches feature kind

This commit is contained in:
Peter F. Patel-Schneider 2020-04-11 07:10:28 -04:00 committed by Filipe Laíns
parent 45dc81b4c4
commit e3aacdbf05
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ class Setting(object):
def __call__(self, device):
assert not hasattr(self, '_value')
assert self.device_kind is None or device.kind in self.device_kind
# combined keyboards and touchpads (e.g., K400) break this assertion so don't use it
# assert self.device_kind is None or device.kind in self.device_kind
p = device.protocol
if p == 1.0:
# HID++ 1.0 devices do not support features