From 0a5b07f9dafb19fca4305aa141dbae9e7571977b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 5 Feb 2018 13:52:05 -0500 Subject: klippy: Allow any stats producer to determine when stats are needed Instead of using the toolhead class to determine if stats should be reported, allow every printer object with a stats() callback to determine if stats are needed. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 21a27252..e4dfb106 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -77,7 +77,7 @@ class GCodeParser: self.move_with_transform = transform.move self.position_with_transform = transform.get_position def stats(self, eventtime): - return "gcodein=%d" % (self.bytes_read,) + return False, "gcodein=%d" % (self.bytes_read,) def printer_state(self, state): if state == 'shutdown': if not self.is_printer_ready: -- cgit v1.2.3-70-g09d2