Commit 5a00602b authored by anthraxx's avatar anthraxx
Browse files

reset logic last_action after handling input (may contain sleeps)

parent 1657bcd7
......@@ -58,7 +58,6 @@ class Logic(object):
def handle_scanned_text(self, scanned_text):
self.last_action = time()
if scanned_text.startswith(self.USER_ID_PREFIX):
# TODO: add proper checksum
scanned_text = scanned_text[:-1]
......@@ -105,6 +104,7 @@ class Logic(object):
except ValueError:
self.last_action = time()
def tick(self):
# TODO: check last_action and reset() with message
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment