wacom: let's assume any 0xb3 with nonzero data is an error
b3 01 00 seems to be a generic "I'm happy" and the few others we've seen are errors. So let's encode that and reconsider if it turns out to be false. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c1283289b7
commit
1b9b7760fd
|
@ -369,6 +369,8 @@ class WacomProtocolLowLevelComm(GObject.Object):
|
|||
raise WacomCorruptDataException(f'invalid opcode')
|
||||
elif data[0] == 0x07:
|
||||
raise WacomNotRegisteredException(f'wrong device, please re-register')
|
||||
elif data[0] != 0x00:
|
||||
raise WacomException(f'unknown error: {data[0]:02x}')
|
||||
|
||||
def send_nordic_command_sync(self,
|
||||
command,
|
||||
|
|
Loading…
Reference in New Issue