add timer to periodically redraw lcd even if there is no activity

This commit is contained in:
Franzi 2018-12-30 11:01:14 +01:00
parent 027a67c530
commit 5fcf419cf0

View file

@ -46,6 +46,9 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
self._lcd_updating = False self._lcd_updating = False
timer = RepeatedTimer(30, self._lcd_update())
timer.start()
def on_settings_initialized(self): def on_settings_initialized(self):
self._initialize_lcd() self._initialize_lcd()
self._printer.register_callback(self) self._printer.register_callback(self)