From 5c22e654696934d7b0c62e6393fc76b1abf0b104 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 4 Mar 2021 15:03:41 +0000 Subject: [PATCH] Debug --- speaker_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speaker_client.py b/speaker_client.py index 558a13a09..0441b96b8 100644 --- a/speaker_client.py +++ b/speaker_client.py @@ -31,6 +31,7 @@ def _waitForKeypress(timeout: int, debug: bool) -> str: except (IOError, EOFError): if debug: print('Keypress Timeout') + print('Timeout') return None return keyPress @@ -132,5 +133,5 @@ def runSpeakerClient(baseDir: str, proxyType: str, httpPrefix: str, prevSay = speakerJson['say'] # wait for a while, or until a key is pressed - if _waitForKeypress(30, debug): + if _waitForKeypress(10, debug): break