klippy: Make sure to always sleep before retrying next stats() call

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-06-15 09:37:57 -04:00
parent c60e4aceed
commit c03b4921c3
1 changed files with 2 additions and 2 deletions

View File

@ -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)