device: only look up feature notifications in SLIDING DPI setting

This commit is contained in:
Peter F. Patel-Schneider 2020-09-28 14:45:32 -04:00
parent 4874d72c16
commit fc59c0fbf6
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ def _feature_dpi_sliding():
def handler(device, n):
"""Called on notification events from the mouse."""
if device.features[n.sub_id] == _F.REPROG_CONTROLS_V4:
if n.sub_id < 0x40 and device.features[n.sub_id] == _F.REPROG_CONTROLS_V4:
state = device._mxVerticalDpiState
if n.address == 0x00:
cid1, cid2, cid3, cid4 = _unpack('!HHHH', n.data[:8])