console: remove //
This commit is contained in:
parent
7b4a24d079
commit
3889fdbe4c
@ -109,11 +109,12 @@ class ConsolePanel(ScreenPanel):
|
|||||||
def add_gcode(self, type, time, message):
|
def add_gcode(self, type, time, message):
|
||||||
if type == "command":
|
if type == "command":
|
||||||
color = COLORS['command']
|
color = COLORS['command']
|
||||||
message = '$ %s' % message
|
|
||||||
elif message.startswith("!!"):
|
elif message.startswith("!!"):
|
||||||
color = COLORS['error']
|
color = COLORS['error']
|
||||||
|
message = message.replace("!! ", "")
|
||||||
elif message.startswith("//"):
|
elif message.startswith("//"):
|
||||||
color = COLORS['warning']
|
color = COLORS['warning']
|
||||||
|
message = message.replace("// ", "")
|
||||||
elif self.hidetemps and re.match('^(?:ok\\s+)?(B|C|T\\d*):', message):
|
elif self.hidetemps and re.match('^(?:ok\\s+)?(B|C|T\\d*):', message):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user