diff --git a/server_microphone.py b/server_microphone.py index 788f3cc..08f2318 100644 --- a/server_microphone.py +++ b/server_microphone.py @@ -99,7 +99,7 @@ async def run_test(): pixels.off() subprocess.Popen(["sh", "/home/pi/tagesschau/end_news.sh"]) run_stop_only_once_flag = False - if "result" in finalResult: + if "result" in finalResult and not run_stop_only_once_flag: run_stop_only_once_flag = True pixels.think() time.sleep(1)