device: add quirk for WPID 4055 in button diversion

This commit is contained in:
Peter F. Patel-Schneider 2020-11-06 16:33:42 -05:00
parent f3a276d7a3
commit 5e2b2b6647
1 changed files with 2 additions and 0 deletions

View File

@ -560,6 +560,8 @@ def _feature_divert_keys_callback(device):
for k in device.keys:
if 'divertable' in k.flags:
choices[k.key] = [_NamedInt(0x00, 'Regular'), _NamedInt(0x01, 'Diverted')]
if device.wpid == '4055': # this device appears to lie about its diversion capabilities
return None
if not choices:
return None
return _ChoicesMapV(choices, key_byte_count=2, byte_count=1, activate=0x02)