From 4973ede9967b33c63cf267a7cf388e5d45ecf3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krebsov=C3=A1?= Date: Sat, 29 May 2021 10:11:38 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Eprimarni=5Fokruh/rpi/pr?= =?UTF-8?q?imary=5Floop.py=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- primarni_okruh/rpi/primary_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primarni_okruh/rpi/primary_loop.py b/primarni_okruh/rpi/primary_loop.py index 920d2d5..0db9e86 100644 --- a/primarni_okruh/rpi/primary_loop.py +++ b/primarni_okruh/rpi/primary_loop.py @@ -190,7 +190,7 @@ def do_command(command, value=0): def is_command_execution_valid(ce): - if ce[1] > (time.time() - 2) * 1000: # if timestamp is created not earlier than a second ago + if ce[1] > (time.time() - 2) * 1000: # if timestamp is created not earlier than 2 seconds ago return True else: # if command that should be executed isn't STOP