Commit 8e6fa0d8 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix gcoder parsing of linenumbers

parent eeb8c1e7
......@@ -63,7 +63,7 @@ def P(line):
def split(line):
split_raw = gcode_exp.findall(line.raw.lower())
command = split_raw[0] if not split_raw[0] == "n" else split_raw[1]
command = split_raw[0] if split_raw[0][0] != "n" else split_raw[1]
line.command = command[0].upper() + command[1]
line.is_move = line.command in move_gcodes
return split_raw
......
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