Update plugins/PostProcessingPlugin/scripts/AddCoolingProfile.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
GregValiant 2026-01-28 10:25:02 -05:00 committed by GitHub
parent 3921ee24d1
commit 526b213639
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"