wacom: fix Spark CRC check

All it needs is less reversing
pull/77/head
Peter Hutterer 2018-02-14 11:07:55 +10:00
parent 45d4d6fb9b
commit 240b982070
1 changed files with 0 additions and 2 deletions

View File

@ -510,10 +510,8 @@ class WacomProtocolBase(WacomProtocolLowLevelComm):
data = self.wait_nordic_data(0xc8, 5)
if data[0] != 0xed:
raise WacomException(f'unexpected answer: {data[0]:02x}')
crc = data[1:]
data = self.wait_nordic_data(0xc9, 5)
crc = data
crc.reverse()
crc = int(binascii.hexlify(bytes(crc)), 16)
pen_data = self.pen_data_buffer
self.pen_data_buffer = []