mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Update AnnealAfterPrint.py
This commit is contained in:
parent
836a7cc2d1
commit
e39b1d8bb3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue