From 284f793e7f6ffc3d3332f9c76e2089bba633558a Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Sat, 24 Mar 2018 22:35:45 +0100 Subject: [PATCH] Disable extrude and retract while printing --- printrun/pronterface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/printrun/pronterface.py b/printrun/pronterface.py index f1b82c1d8..9349c27f5 100644 --- a/printrun/pronterface.py +++ b/printrun/pronterface.py @@ -404,10 +404,14 @@ def do_monitor(self, l = ""): self.log(_("Done monitoring.")) def do_pront_extrude(self, l = ""): + if self.p.printing and not self.paused: + return feed = self.settings.e_feedrate self.do_extrude_final(self.edist.GetValue(), feed) def do_pront_reverse(self, l = ""): + if self.p.printing and not self.paused: + return feed = self.settings.e_feedrate self.do_extrude_final(- self.edist.GetValue(), feed)