Commit 99747933 authored by D1plo1d's avatar D1plo1d

Patching prontserve to work with the latest gcoder changes

parent 9e126d05
...@@ -365,7 +365,8 @@ class Prontserve(pronsole.pronsole, EventEmitter): ...@@ -365,7 +365,8 @@ class Prontserve(pronsole.pronsole, EventEmitter):
elif len(self.jobs.list) > 0: elif len(self.jobs.list) > 0:
print "Starting the next print job" print "Starting the next print job"
self.current_job = self.jobs.list.pop(0) self.current_job = self.jobs.list.pop(0)
self.p.startprint(self.current_job['body'].split("\n")) gc = gcoder.GCode(self.current_job['body'].split("\n"))
self.p.startprint(gc)
self.fire("job_started", self.jobs.sanitize(self.current_job)) self.fire("job_started", self.jobs.sanitize(self.current_job))
else: else:
print "Finished all print jobs" print "Finished all print jobs"
......
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