Key handling
This commit is contained in:
parent
6ac56e78bf
commit
0824603890
|
@ -138,7 +138,11 @@ class Control(util.Loggable):
|
||||||
st = self.state()
|
st = self.state()
|
||||||
self._logger().info("Reached state "
|
self._logger().info("Reached state "
|
||||||
f"{state_names.get(st, st)}")
|
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
|
# Reached target
|
||||||
timeouts = 0
|
timeouts = 0
|
||||||
if target == state.CLOSE \
|
if target == state.CLOSE \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user