From d3156110b766be5e3d9d782e8ebdddfb32374d7f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 15 Jul 2019 09:39:33 +1000 Subject: [PATCH] wacom: disable a duplicate debugging, enable another one Print the dimensions during register too. And the "received" message is duplicate because we log this as the data comes in from the nordic anyway. --- tuhi/wacom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index a6e591d..f076530 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -496,7 +496,7 @@ class WacomProtocolLowLevelComm(GObject.Object): data = self.check_nordic_incoming() - logger.debug(f'received {data.opcode:02x} / {data.length:02x} / {b2hex(bytes(data))}') + # logger.debug(f'received {data.opcode:02x} / {data.length:02x} / {b2hex(bytes(data))}') if isinstance(expected_opcode, list): if data.opcode not in expected_opcode: @@ -1084,6 +1084,7 @@ class WacomProtocolSlate(WacomProtocolSpark): logger.info(f'device name is {name}') w = self.get_dimensions('width') h = self.get_dimensions('height') + logger.debug(f'dimensions: {w}x{h}') if self.width != w or self.height != h: logger.error(f'incompatible dimensions: {w}x{h}') fw_high = self.get_firmware_version(0)