wacom: 0x05 appears to be the error for 'invalid opcode'

This commit is contained in:
Peter Hutterer 2018-02-12 15:20:19 +10:00
parent c9d48ed4b2
commit de033c3b6a
1 changed files with 2 additions and 0 deletions

View File

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