Skip to content

Commit

Permalink
Merge pull request #130 from pimsierhuis/switch
Browse files Browse the repository at this point in the history
GenericGcodeDriver: Send postHttpUploadGcode before instead of after autoPlay
  • Loading branch information
t-oster authored Dec 28, 2019
2 parents dcb007c + a4a92f6 commit 8c366c2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -782,14 +782,14 @@ protected void disconnect(String jobname) throws IOException, URISyntaxException
{
out.close();
http_upload(new URI(getHttpUploadUrl()), outputBuffer.toString("UTF-8"), jobname);
if (this.isAutoPlay())
{
http_play(jobname);
}
if (this.getPostHttpUploadGcode() != null && !this.getPostHttpUploadGcode().equals(""))
{
http_commands(this.getPostHttpUploadGcode(), jobname);
}
if (this.isAutoPlay())
{
http_play(jobname);
}
}
else
{
Expand Down

0 comments on commit 8c366c2

Please sign in to comment.