diff --git a/Fotobox.py b/Fotobox.py index 78e62fc..7aabc66 100644 --- a/Fotobox.py +++ b/Fotobox.py @@ -166,6 +166,7 @@ class Fotobox: pygame.display.flip() def _qr_callback(self): + print("QR TIMEOUT") self._set_state(State.IDLE) def run(self): @@ -296,7 +297,6 @@ class Fotobox: else: self._choice = None elif new_state == State.QR: - self._qr_timer.restart() screen.fill((0, 0, 0)) screen.blit(LOADING_SURFACE, LOADING_RECT) pygame.display.flip() @@ -316,6 +316,8 @@ class Fotobox: self.save(self._choice.photo_image, "", False) self.save(self._choice.framed_image, "framed", True) + self._qr_timer.restart() + def save(self, img: Image, suffix: str, do_upload: bool): filename = "F-%s---R%04d-%s---S%04d-%s---P%04d-%s---%s%s.jpg" % ( self._fotobox_uuid,