wacom: name an argument to make it more obvious what the magic 5 means

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/164/head
Peter Hutterer 2019-08-14 12:02:06 +10:00
parent d73da09e26
commit e5375a55dd
1 changed files with 1 additions and 1 deletions

View File

@ -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:]