aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-12-09 09:41:46 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-12-09 17:09:51 -0500
commitedd7dfe1c87cd4362c4ec2536bceef857389a692 (patch)
tree814f658b282ad9cb9212c7ab14bc937955779261 /klippy/mcu.py
parent89f5452ddbcaecfba7cee5a3ba73b2659746d63f (diff)
downloadkutter-edd7dfe1c87cd4362c4ec2536bceef857389a692.tar.gz
kutter-edd7dfe1c87cd4362c4ec2536bceef857389a692.tar.xz
kutter-edd7dfe1c87cd4362c4ec2536bceef857389a692.zip
gcode: Rework toolhead stalling to use greenlets
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index ba441474..b49c29cc 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -506,6 +506,8 @@ class MCU:
est_mcu_time = self.serial.get_clock(eventtime) / self._mcu_freq
self._print_start_time = est_mcu_time
def get_print_buffer_time(self, eventtime, print_time):
+ if self.is_shutdown:
+ return 0.
mcu_time = print_time + self._print_start_time
est_mcu_time = self.serial.get_clock(eventtime) / self._mcu_freq
return mcu_time - est_mcu_time