diff --git a/plugins/PostProcessingPlugin/scripts/AnnealAfterPrint.py b/plugins/PostProcessingPlugin/scripts/AnnealAfterPrint.py index a9cffd9e88..7ca8fac79d 100644 --- a/plugins/PostProcessingPlugin/scripts/AnnealAfterPrint.py +++ b/plugins/PostProcessingPlugin/scripts/AnnealAfterPrint.py @@ -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 \ No newline at end of file + return data