Commit e1af9b43 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix G92 handling in gcoder

parent 3822f076
......@@ -136,9 +136,9 @@ class Layer(list):
if line.z: current_z = 0
elif line.command == "G92":
if line.x: offset_x += current_x - line.x
if line.y: offset_y += current_y - line.y
if line.z: offset_z += current_z - line.z
if line.x: offset_x = current_x - line.x
if line.y: offset_y = current_y - line.y
if line.z: offset_z = current_z - line.z
line.current_x = current_x
line.current_y = current_y
......
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