From c03b4921c3031e6818fe3551e5c48e07fb03369a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Jun 2017 09:37:57 -0400 Subject: [PATCH] klippy: Make sure to always sleep before retrying next stats() call Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 4 ++-- 1 file 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)