Skip to content
Snippets Groups Projects
Commit 688b107f authored by Thomas Oster's avatar Thomas Oster
Browse files

closing and homing

parent caee5ed0
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,7 @@ public class IModelaMill extends LaserCutter
private void writeFinalizationCode(PrintStream out)
{
out.println("M05");//stop spindle
out.println("G0 X0 Y0 Z0");//go back to home
out.println("M02");//END_OF_PROGRAM
out.println("%");
}
......@@ -281,6 +282,7 @@ public class IModelaMill extends LaserCutter
PrintStream w = new PrintStream(new FileOutputStream(new File(new URI(hostname))));
pl.taskChanged(this, "sending...");
w.write(gcode);
w.close();
}
else if (hostname.startsWith("printer://"))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment