aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index b7d737c6..519d8e0a 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -673,13 +673,8 @@ class GCodeParser:
gcode_pos, base_pos, homing_pos))
def request_restart(self, result):
if self.is_printer_ready:
- self.toolhead.motor_off()
print_time = self.toolhead.get_last_move_time()
- if self.heaters is not None:
- for heater in self.heaters.get_all_heaters():
- heater.set_temp(print_time, 0.)
- if self.fan is not None:
- self.fan.set_speed(print_time, 0.)
+ self.printer.send_event("gcode:request_restart", print_time)
self.toolhead.dwell(0.500)
self.toolhead.wait_moves()
self.printer.request_exit(result)