From e5375a55dd598af8cd836c6e7ded89f28afd974c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 14 Aug 2019 12:02:06 +1000 Subject: [PATCH] wacom: name an argument to make it more obvious what the magic 5 means Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 18cd59b..3f55778 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -1020,7 +1020,7 @@ class WacomProtocolSlate(WacomProtocolSpark): logger.warning('no data, please make sure the LED is blue and the button is pressed to switch it back to green') def wait_for_end_read(self): - data = self.wait_nordic_unless_pen_data(0xc8, 5) + data = self.wait_nordic_unless_pen_data(0xc8, timeout=5) if data[0] != 0xed: raise WacomException(f'unexpected answer: {data[0]:02x}') crc = data[1:]