Commit 87c79d6b authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent cb954797
...@@ -263,19 +263,14 @@ class GCode(object): ...@@ -263,19 +263,14 @@ class GCode(object):
if z is not None: current_z = z if z is not None: current_z = z
elif line.command == "G28": elif line.command == "G28":
if not any([line.x, line.y, line.z]): home_all = not any([line.x, line.y, line.z])
offset_x = offset_y = offset_z = 0 if home_all or line.x is not None:
current_x = self.home_x
current_y = self.home_y
current_z = self.home_z
else:
if line.x is not None:
offset_x = 0 offset_x = 0
current_x = self.home_x current_x = self.home_x
if line.y is not None: if home_all or line.y is not None:
offset_y = 0 offset_y = 0
current_y = self.home_y current_y = self.home_y
if line.z is not None: if home_all or line.z is not None:
offset_z = 0 offset_z = 0
current_z = self.home_z current_z = self.home_z
......
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