faster checking of feature-based settings
This commit is contained in:
parent
d07a20e6f8
commit
1a36ec65ee
|
@ -47,7 +47,9 @@ def _feature_fn_swap():
|
|||
|
||||
|
||||
def check_features(device, already_known):
|
||||
if _hidpp20.FEATURE.FN_INVERSION in device.features and not any(s.name == 'fn-swap' for s in already_known):
|
||||
if device.protocol < 2.0:
|
||||
return
|
||||
if not any(s.name == _FN_SWAP[0] for s in already_known) and _hidpp20.FEATURE.FN_INVERSION in device.features:
|
||||
already_known.append(_feature_fn_swap())
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue