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
1 changed files with 3 additions and 0 deletions

View File

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