Key handling

main
Valentin Ochs 2022-11-06 19:37:27 +01:00
parent 6ac56e78bf
commit 0824603890
1 changed files with 5 additions and 1 deletions

View File

@ -138,7 +138,11 @@ class Control(util.Loggable):
st = self.state()
self._logger().info("Reached state "
f"{state_names.get(st, st)}")
if st == target:
if action == state.IDLE:
self._logger().info("Probably somebody using the key")
self.target(st)
target = last_target = st
elif st == target:
# Reached target
timeouts = 0
if target == state.CLOSE \