aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-18 21:11:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-19 17:25:42 -0400
commit2089f196707e3889f1920238e2f1bc09912a5492 (patch)
treec22be90a4e9a5c6d8c038798f923779828dd662c /klippy/klippy.py
parent593741919f25a26f4a8d7b10e1dfaba7a23604c8 (diff)
downloadkutter-2089f196707e3889f1920238e2f1bc09912a5492.tar.gz
kutter-2089f196707e3889f1920238e2f1bc09912a5492.tar.xz
kutter-2089f196707e3889f1920238e2f1bc09912a5492.zip
toolhead: Separate is_active() code from stats() code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index d779c97b..9b899940 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -151,12 +151,12 @@ class Printer:
toolhead = self.objects.get('toolhead')
if toolhead is None or self.mcu is None:
return eventtime + 1.
- is_active, thstats = toolhead.stats(eventtime)
+ is_active = toolhead.check_active(eventtime)
if not is_active and not force_output:
return eventtime + 1.
out = []
out.append(self.gcode.stats(eventtime))
- out.append(thstats)
+ out.append(toolhead.stats(eventtime))
out.append(self.mcu.stats(eventtime))
logging.info("Stats %.1f: %s" % (eventtime, ' '.join(out)))
return eventtime + 1.