Skip to content

Commit

Permalink
Restore relative extrusion with M83 kliment#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
volconst committed Jul 31, 2020
1 parent 5cffab7 commit a2186a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion printrun/printcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ def pause(self):
self.pauseE = self.analyzer.abs_e
self.pauseF = self.analyzer.current_f
self.pauseRelative = self.analyzer.relative
self.pauseRelativeE = self.analyzer.relative_e

def resume(self):
"""Resumes a paused print.
Expand All @@ -568,7 +569,10 @@ def resume(self):
self.send_now("G92 E" + str(self.pauseE))

# go back to relative if needed
if self.pauseRelative: self.send_now("G91")
if self.pauseRelative:
self.send_now("G91")
if self.pauseRelativeE:
self.send_now('M83')
# reset old feed rate
self.send_now("G1 F" + str(self.pauseF))

Expand Down

0 comments on commit a2186a3

Please sign in to comment.