add spectacular corner case debugging, DO NOT MERGE TO MAIN YET

pull/283/head
Roland Metivier 2022-01-15 07:54:11 -06:00
parent 7d94675f67
commit 70fc7d14f1
No known key found for this signature in database
GPG Key ID: 54E5710EE1759A5B
1 changed files with 5 additions and 1 deletions

View File

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