diff --git a/vinscant/mpfiles/main.py b/vinscant/mpfiles/main.py index c8971ee..e6384cb 100644 --- a/vinscant/mpfiles/main.py +++ b/vinscant/mpfiles/main.py @@ -81,11 +81,11 @@ def good(self, name=None): self.led.setColor(*StatusNotifier.colors[2]) self.buzzer.start(500) Timer(0).init(period=500, mode=Timer.ONE_SHOT, callback=self.gotoSleep) - if name: - leddy.setText(f"Welkom {name}!") mqtt = Mqtt() mqtt.blink() mqtt.close() + if name: + leddy.setText(f"Welkom {name}!") def error(self): self.led.setColor(*StatusNotifier.colors[0]) @@ -104,11 +104,11 @@ def _post(self, command: str): def setText(self, text: str): watchdog.feed() - self._post(f"Option autoResetMs {5 * 1000}") + self._post(f"ScrollingText {text}") watchdog.feed() - time.sleep(1) + time.sleep(3) watchdog.feed() - self._post(f"ScrollingText {text}") + self._post(f"Option autoResetMs {5 * 1000}") watchdog.feed() class Mqtt: