wacom: fix report descriptor logical min/max
Changing the python representation is not enough. We also need to change
the HID marker with the correct size.
Fixes 67b4d2b8fe
This commit is contained in:
parent
d0001e18ed
commit
17dc80bea3
|
@ -457,9 +457,9 @@ class WacomProtocolBase(WacomProtocolLowLevelComm):
|
||||||
rdesc = wacom_live_rdesc_template[:]
|
rdesc = wacom_live_rdesc_template[:]
|
||||||
for i, v in enumerate(rdesc):
|
for i, v in enumerate(rdesc):
|
||||||
if v == 'width':
|
if v == 'width':
|
||||||
rdesc[i] = [0x26, list(int.to_bytes(w, 4, 'little', signed=True))]
|
rdesc[i] = [0x27, list(int.to_bytes(w, 4, 'little', signed=True))]
|
||||||
elif v == 'height':
|
elif v == 'height':
|
||||||
rdesc[i] = [0x26, list(int.to_bytes(h, 4, 'little', signed=True))]
|
rdesc[i] = [0x27, list(int.to_bytes(h, 4, 'little', signed=True))]
|
||||||
|
|
||||||
uhid_device = UHIDDevice(fd)
|
uhid_device = UHIDDevice(fd)
|
||||||
uhid_device.rdesc = list(flatten(rdesc))
|
uhid_device.rdesc = list(flatten(rdesc))
|
||||||
|
|
Loading…
Reference in New Issue