Commit 72f27a89 authored by Guillaume Seguin's avatar Guillaume Seguin

Don't switch raw command to lowercase in gcoder

parent 966a6c91
...@@ -47,8 +47,8 @@ class Line(object): ...@@ -47,8 +47,8 @@ class Line(object):
extruding = None extruding = None
def __init__(self, l): def __init__(self, l):
self.raw = l.lower() self.raw = l
self.split_raw = gcode_exp.findall(self.raw) self.split_raw = gcode_exp.findall(self.raw.lower())
self.command = self.split_raw[0].upper() if not self.split_raw[0].startswith("n") else self.split_raw[1].upper() 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
...@@ -68,7 +68,7 @@ class Line(object): ...@@ -68,7 +68,7 @@ class Line(object):
setattr(self, code, float(bit[1:])) setattr(self, code, float(bit[1:]))
def __repr__(self): def __repr__(self):
return self.raw.upper() return self.raw
class Layer(object): class Layer(object):
......
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