Commit 81bc0de4 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix minor bug in gcoder which broke hilighting in gviz

When getting rid of the gcode line number (N**), we were not switching command
string to uppercase.
parent 3b8352ac
...@@ -50,7 +50,7 @@ class Line(object): ...@@ -50,7 +50,7 @@ class Line(object):
if ";" in self.raw: if ";" in self.raw:
self.raw = self.raw.split(";")[0].rstrip() self.raw = self.raw.split(";")[0].rstrip()
self.split_raw = gcode_exp.findall(self.raw) self.split_raw = gcode_exp.findall(self.raw)
self.command = self.split_raw[0].upper() if not self.split_raw[0].startswith("n") else self.split_raw[1] self.command = self.split_raw[0].upper() if not self.split_raw[0].startswith("n") else self.split_raw[1].upper()
self.is_move = self.command in move_gcodes self.is_move = self.command in move_gcodes
def parse_coordinates(self, imperial): def parse_coordinates(self, imperial):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment