qr timeout - cancel in IDLE mode
This commit is contained in:
parent
11701f58b8
commit
0a2770351d
@ -277,7 +277,9 @@ class Fotobox:
|
|||||||
def _set_state(self, new_state: State):
|
def _set_state(self, new_state: State):
|
||||||
print(new_state)
|
print(new_state)
|
||||||
self._state = new_state
|
self._state = new_state
|
||||||
if new_state == State.COUNTDOWN:
|
if new_state == State.IDLE:
|
||||||
|
self._qr_timer.cancel()
|
||||||
|
elif new_state == State.COUNTDOWN:
|
||||||
led_border(True)
|
led_border(True)
|
||||||
self._countdown_timer.restart()
|
self._countdown_timer.restart()
|
||||||
elif new_state == State.SHOOTING:
|
elif new_state == State.SHOOTING:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user