mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 21:27:53 -06:00
toolhead: Separate motor off timer from main flush timer
Move the motor off time checking to its own code. This simplifies the main flush handler. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0ca96e543c
commit
6179839215
2 changed files with 40 additions and 26 deletions
|
@ -181,7 +181,7 @@ class GCodeParser:
|
|||
return
|
||||
eventtime = self.reactor.monotonic()
|
||||
while self.is_printer_ready and heater.check_busy(eventtime):
|
||||
self.toolhead.reset_motor_off_time(eventtime)
|
||||
print_time = self.toolhead.get_last_move_time()
|
||||
self.respond(self.get_temp())
|
||||
eventtime = self.reactor.pause(eventtime + 1.)
|
||||
def set_temp(self, heater, params, wait=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue