settings: fix fake divert gkeys read to return byte string

This commit is contained in:
Peter F. Patel-Schneider 2021-06-15 16:56:26 -04:00
parent d172d27408
commit 4690ca77c4
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ def _feature_divert_gkeys():
super(_DivertGkeysRW, self).__init__(feature, write_fnid=0x20) super(_DivertGkeysRW, self).__init__(feature, write_fnid=0x20)
def read(self, device): # no way to read, so just assume not diverted def read(self, device): # no way to read, so just assume not diverted
return 0x00 return b'\x00'
rw = _DivertGkeysRW(_F.GKEY) rw = _DivertGkeysRW(_F.GKEY)
return _Setting(_DIVERT_GKEYS, rw, _BooleanV(true_value=0x01, false_value=0x00, mask=0xff), device_kind=(_DK.keyboard, )) return _Setting(_DIVERT_GKEYS, rw, _BooleanV(true_value=0x01, false_value=0x00, mask=0xff), device_kind=(_DK.keyboard, ))