Skip to content

Commit

Permalink
Path: fix grbl --return-to placement
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-ho-ho committed Jul 23, 2021
1 parent 5f5b3d9 commit d2c170a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Path/PathScripts/post/grbl_post.py
Expand Up @@ -305,6 +305,9 @@ def export(objectslist, filename, argstring):
gcode += linenumber() + '(Coolant Off:' + coolantMode + ')\n'
gcode += linenumber() +'M9' + '\n'

if RETURN_TO:
gcode += linenumber() + "G0 X%s Y%s" % tuple(RETURN_TO)

# do the post_amble
if OUTPUT_BCNC:
gcode += linenumber() + "(Block-name: post_amble)\n"
Expand All @@ -315,9 +318,6 @@ def export(objectslist, filename, argstring):
for line in POSTAMBLE.splitlines(True):
gcode += linenumber() + line

if RETURN_TO:
gcode += linenumber() + "G0 X%s Y%s" % tuple(RETURN_TO)

# show the gCode result dialog
if FreeCAD.GuiUp and SHOW_EDITOR:
dia = PostUtils.GCodeEditorDialog()
Expand Down

0 comments on commit d2c170a

Please sign in to comment.