mirror of https://github.com/Desuuuu/klipper.git
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:
parent
c60e4aceed
commit
c03b4921c3
|
@ -151,10 +151,10 @@ class Printer:
|
||||||
self.need_dump_debug = False
|
self.need_dump_debug = False
|
||||||
toolhead = self.objects.get('toolhead')
|
toolhead = self.objects.get('toolhead')
|
||||||
if toolhead is None or self.mcu is None:
|
if toolhead is None or self.mcu is None:
|
||||||
return
|
return eventtime + 1.
|
||||||
is_active, thstats = toolhead.stats(eventtime)
|
is_active, thstats = toolhead.stats(eventtime)
|
||||||
if not is_active and not force_output:
|
if not is_active and not force_output:
|
||||||
return
|
return eventtime + 1.
|
||||||
out = []
|
out = []
|
||||||
out.append(self.gcode.stats(eventtime))
|
out.append(self.gcode.stats(eventtime))
|
||||||
out.append(thstats)
|
out.append(thstats)
|
||||||
|
|
Loading…
Reference in New Issue