job_status: M117 without text clears the label fix #614

This commit is contained in:
alfrix 2022-05-10 20:52:27 -03:00 committed by Alfredo Monclus
parent 8550cbcab6
commit b77b7c0976

View File

@ -894,8 +894,9 @@ class JobStatusPanel(ScreenPanel):
def update_message(self):
msg = self._printer.get_stat("display_status", "message")
if type(msg) == str:
self.labels['lcdmessage'].set_text(msg)
if msg is None:
msg = " "
self.labels['lcdmessage'].set_text(str(msg))
def update_temp(self, x, temp, target):
if target > 0: