From 3db371fbb08d77175324f252f5753e1ab94c98b4 Mon Sep 17 00:00:00 2001 From: make-ing Date: Mon, 14 Mar 2016 15:15:13 +0100 Subject: [PATCH] added feedrate and intesity reset at beginning of each laser job. --- src/octoprint/util/comm_acc2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/octoprint/util/comm_acc2.py b/src/octoprint/util/comm_acc2.py index 39a0318a..a014b542 100644 --- a/src/octoprint/util/comm_acc2.py +++ b/src/octoprint/util/comm_acc2.py @@ -824,6 +824,10 @@ class MachineCom(object): if self._currentFile is None: raise ValueError("No file selected for printing") + # reset feedrate and intesity factor in case they where changed in a previous run + self._feedrate_factor = 1 + self._intensity_factor = 1 + try: # ensure fan is on whatever gcode follows. self.sendCommand("M08")