job_status: M117 without text clears the label fix #614

This commit is contained in:
alfrix authored and Alfredo Monclus committed 2022-05-31 11:14:42 -03:00
1 parent 8550cbcab6
commit b77b7c0976
1 file changed
+3 -2
+3 -2
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: