diff options
author | Dim3nsioneer <scinfi@gmx.net> | 2014-02-24 11:56:07 +0400 |
---|---|---|
committer | Dim3nsioneer <scinfi@gmx.net> | 2014-02-24 11:56:07 +0400 |
commit | 3443c68f47f2a7880864dc84a1d7536d22a87390 (patch) | |
tree | de570799b6f535405fb663811edeb2f34e2bda78 /plugins | |
parent | b0a3c416dfd74b9f9efcaa9d53418cc2a7e93924 (diff) |
Bugfix TweakAtZ: check for old flow rate added, version updated to 3.1.1
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TweakAtZ.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TweakAtZ.py b/plugins/TweakAtZ.py index d71e70a713..f1d672412c 100644 --- a/plugins/TweakAtZ.py +++ b/plugins/TweakAtZ.py @@ -1,4 +1,4 @@ -#Name: Tweak At Z 3.1 +#Name: Tweak At Z 3.1.1 #Info: Change printing parameters at a given height #Help: TweakAtZ #Depend: GCode @@ -28,8 +28,9 @@ #history / changelog: #V3.0.1: TweakAtZ-state default 1 (i.e. the plugin works without any TweakAtZ comment) #V3.1: Recognizes UltiGCode and deactivates value reset, fan speed added, alternatively layer no. to tweak at, extruder three temperature disabled by '#Ex3' +#V3.1.1: Bugfix reset flow rate -version = '3.1' +version = '3.1.1' import re @@ -101,6 +102,8 @@ with open(filename, "w") as f: old_fanSpeed = 0 if 'M106' in line and state < 3: #looking for fan speed old_fanSpeed = getValue(line, 'S', old_fanSpeed) + if 'M221' in line and state < 3: #looking for flow rate + old_flowrate = getValue(line, 'S', old_flowrate) if 'G1' in line or 'G0' in line: newZ = getValue(line, 'Z', z) x = getValue(line, 'X', x) |