Browse Source

Aktualizovat „primarni_okruh/rpi/primary_loop.py“

master
Krebsová 4 years ago
parent
commit
4973ede996
  1. 2
      primarni_okruh/rpi/primary_loop.py

2
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

Loading…
Cancel
Save