wacom: 0x05 appears to be the error for 'invalid opcode'
This commit is contained in:
parent
c9d48ed4b2
commit
de033c3b6a
|
@ -162,6 +162,8 @@ class WacomProtocolLowLevelComm(GObject.Object):
|
||||||
raise WacomEEAGAINException(f'unexpected answer: {data[0]:02x}')
|
raise WacomEEAGAINException(f'unexpected answer: {data[0]:02x}')
|
||||||
if data[0] == 0x01:
|
if data[0] == 0x01:
|
||||||
raise WacomWrongModeException(f'wrong device mode')
|
raise WacomWrongModeException(f'wrong device mode')
|
||||||
|
if data[0] == 0x05:
|
||||||
|
raise WacomCorruptDataException(f'invalid opcode')
|
||||||
|
|
||||||
def send_nordic_command_sync(self,
|
def send_nordic_command_sync(self,
|
||||||
command,
|
command,
|
||||||
|
|
Loading…
Reference in New Issue