mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:25:57 +08:00
Update AnnealAfterPrint.py
This commit is contained in:
parent
836a7cc2d1
commit
e39b1d8bb3
@ -151,10 +151,10 @@ class AnnealAfterPrint(Script):
|
||||
anneal_code = self.generateAnnealCode(anneal_bed_temp, anneal_chamber_temp, anneal_minutes, initial_beep, final_cooling_temp)
|
||||
|
||||
try:
|
||||
end_of_gcode_index = data[-1].index(';End sof Gcode')
|
||||
end_of_gcode_index = data[-1].index(';End of Gcode')
|
||||
except ValueError:
|
||||
data[-1] += anneal_code + '\n'
|
||||
else:
|
||||
data[-1] = data[-1][:end_of_gcode_index] + anneal_code + '\n' + data[-1][end_of_gcode_index:]
|
||||
|
||||
return data
|
||||
return data
|
||||
|
Loading…
x
Reference in New Issue
Block a user