wacom: error code 0x05 is an unrecognized command
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d3726420cf
commit
c84f3f8c63
|
@ -287,6 +287,10 @@ class WacomEEAGAINException(WacomException):
|
||||||
errno = errno.EAGAIN
|
errno = errno.EAGAIN
|
||||||
|
|
||||||
|
|
||||||
|
class WacomUnsupportedCommandException(WacomException):
|
||||||
|
errno = errno.ENOMSG
|
||||||
|
|
||||||
|
|
||||||
class WacomWrongModeException(WacomException):
|
class WacomWrongModeException(WacomException):
|
||||||
errno = errno.EBADE
|
errno = errno.EBADE
|
||||||
|
|
||||||
|
@ -515,7 +519,7 @@ class WacomProtocolLowLevelComm(GObject.Object):
|
||||||
elif data[0] == 0x02:
|
elif data[0] == 0x02:
|
||||||
raise WacomEEAGAINException(f'unexpected answer: {data[0]:02x}')
|
raise WacomEEAGAINException(f'unexpected answer: {data[0]:02x}')
|
||||||
elif data[0] == 0x05:
|
elif data[0] == 0x05:
|
||||||
raise WacomCorruptDataException(f'invalid opcode')
|
raise WacomUnsupportedCommandException(f'invalid opcode')
|
||||||
elif data[0] == 0x07:
|
elif data[0] == 0x07:
|
||||||
raise WacomNotRegisteredException(f'wrong device, please re-register')
|
raise WacomNotRegisteredException(f'wrong device, please re-register')
|
||||||
elif data[0] != 0x00:
|
elif data[0] != 0x00:
|
||||||
|
|
Loading…
Reference in New Issue