Only apply the temperature offset if the temperature being set from the GCODE isn't 0 ("heaters off")
This commit is contained in:
parent
4d2213544e
commit
297d101f5f
1 changed files with 3 additions and 2 deletions
|
|
@ -1178,8 +1178,9 @@ class PrintingGcodeFileInformation(PrintingFileInformation):
|
|||
|
||||
try:
|
||||
temp = float(tempMatch.group(2))
|
||||
newTemp = temp + offset
|
||||
line = line.replace("S" + tempMatch.group(2), "S%f" % newTemp)
|
||||
if temp > 0:
|
||||
newTemp = temp + offset
|
||||
line = line.replace("S" + tempMatch.group(2), "S%f" % newTemp)
|
||||
except ValueError:
|
||||
pass
|
||||
return line
|
||||
|
|
|
|||
Loading…
Reference in a new issue