aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-06-15 09:37:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-06-15 09:37:57 -0400
commitc03b4921c3031e6818fe3551e5c48e07fb03369a (patch)
tree1e0f7d583bc096cd6dfe0645def3b98951a50f49 /klippy
parentc60e4aceed8d71750fc297cdb8f6cd703b10b8ac (diff)
downloadkutter-c03b4921c3031e6818fe3551e5c48e07fb03369a.tar.gz
kutter-c03b4921c3031e6818fe3551e5c48e07fb03369a.tar.xz
kutter-c03b4921c3031e6818fe3551e5c48e07fb03369a.zip
klippy: Make sure to always sleep before retrying next stats() call
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/klippy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 0cfd79e9..716f5067 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -151,10 +151,10 @@ class Printer:
self.need_dump_debug = False
toolhead = self.objects.get('toolhead')
if toolhead is None or self.mcu is None:
- return
+ return eventtime + 1.
is_active, thstats = toolhead.stats(eventtime)
if not is_active and not force_output:
- return
+ return eventtime + 1.
out = []
out.append(self.gcode.stats(eventtime))
out.append(thstats)