mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-03-05 18:14:38 -07:00
Update plugins/PostProcessingPlugin/scripts/AddCoolingProfile.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
3921ee24d1
commit
526b213639
1 changed files with 1 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ class AddCoolingProfile(Script):
|
|||
for index, line in enumerate(lines):
|
||||
if line.startswith("M106 S0") or line.startswith("M107"):
|
||||
fan_is_on = False
|
||||
elif line.startswith("M106 S") and f"{float(self.getValue(line, 'S'))}" != "0":
|
||||
elif line.startswith("M106 S") and float(self.getValue(line, 'S')) != 0:
|
||||
try:
|
||||
if not fan_is_on:
|
||||
lines[index - 5] += "\nM106 S179 ; Jump start" if fan_mode else "\nM106 S0.7 ; Jump start"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue