From 45d4d6fb9b28c3c1bfe90f3eb43aa51e84840c8e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 14 Feb 2018 09:45:49 +1000 Subject: [PATCH] wacom: merge two debug strings --- tuhi/wacom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 519bb9d..7f19918 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -546,8 +546,7 @@ class WacomProtocolBase(WacomProtocolLowLevelComm): bitmask = data[offset] opcode = 0 offset += 1 - debug_data.append(f'{bitmask:02x} ({bitmask:08b})') - debug_data.append('|') + debug_data.append(f'{bitmask:02x} ({bitmask:08b}) |') args_length = bin(bitmask).count('1') args = data[offset:offset + args_length] formatted_args = []