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:
Benjamin Tissoires 2018-02-14 13:11:37 +01:00
parent d0001e18ed
commit 17dc80bea3
1 changed files with 2 additions and 2 deletions

View File

@ -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))