Use OctoPrint native Way of getting the Version number
This commit is contained in:
parent
23dddb11bc
commit
027a67c530
1 changed files with 1 additions and 2 deletions
|
@ -202,8 +202,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
|
||||||
self._line2 = ''
|
self._line2 = ''
|
||||||
self._line3 = ''
|
self._line3 = ''
|
||||||
|
|
||||||
version = octoprint.server.DISPLAY_VERSION
|
line4 = 'OctoPrint ' + octoprint.__version__
|
||||||
line4 = 'OctoPrint ' + version.split(' ', 1)[0]
|
|
||||||
|
|
||||||
self._line4 = line4.center(20)
|
self._line4 = line4.center(20)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue