mirror of https://github.com/tuhiproject/tuhi.git
add spectacular corner case debugging, DO NOT MERGE TO MAIN YET
parent
7d94675f67
commit
70fc7d14f1
|
@ -1817,7 +1817,11 @@ class StrokeDelta(object):
|
|||
# If this would exist, it would throw off the byte count
|
||||
# anyway, so this cannot ever exist without breaking
|
||||
# everything.
|
||||
raise NotImplementedError('This device is not supposed to be exist')
|
||||
|
||||
# thinking this may be a weird firmware quirk or some really new feature
|
||||
# FW: firmware is B181207a-C338.000
|
||||
# TABLET: Intuos Pro Paper M
|
||||
raise RuntimeWarning('This device is not supposed to exist (uses opmask 0x10), please file a bug report if you have encountered this corner case.')
|
||||
elif mask == 2:
|
||||
# 8 bit delta
|
||||
delta = int.from_bytes(bytes([databytes[0]]), byteorder='little', signed=True)
|
||||
|
|
Loading…
Reference in New Issue