Skip to content
Snippets Groups Projects
Commit f8cff987 authored by Marcel Schwittlick's avatar Marcel Schwittlick
Browse files

exportgcode: disables waiting for reply when saving gcode to file instead of the driver itself

parent 0f627822
No related branches found
No related tags found
No related merge requests found
......@@ -416,7 +416,7 @@ public class GenericGcodeDriver extends LaserCutter {
}
}
}
protected void http_upload(URI url, String data, String filename) throws IOException
{
HttpClient client = new HttpClient(url);
......@@ -669,6 +669,8 @@ public void saveJob(LaserJob job) throws IllegalJobException, Exception {
System.out.println("Creating file " + filename);
this.out = new PrintStream(new File(filename));
setWaitForOKafterEachLine( false );
writeInitializationCode();
int i = 0;
int max = job.getParts().size();
......@@ -691,7 +693,9 @@ public void saveJob(LaserJob job) throws IllegalJobException, Exception {
i++;
}
writeShutdownCode();
//writer.close();
this.out.flush();
setWaitForOKafterEachLine(true);
}
private List<Double> resolutions;
......
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