console: remove //

This commit is contained in:
alfrix 2022-05-19 15:15:59 -03:00 committed by Alfredo Monclus
parent 7b4a24d079
commit 3889fdbe4c

View File

@ -109,11 +109,12 @@ class ConsolePanel(ScreenPanel):
def add_gcode(self, type, time, message):
if type == "command":
color = COLORS['command']
message = '$ %s' % message
elif message.startswith("!!"):
color = COLORS['error']
message = message.replace("!! ", "")
elif message.startswith("//"):
color = COLORS['warning']
message = message.replace("// ", "")
elif self.hidetemps and re.match('^(?:ok\\s+)?(B|C|T\\d*):', message):
return
else: