diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-05 13:52:05 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-05 13:52:05 -0500 |
commit | 0a5b07f9dafb19fca4305aa141dbae9e7571977b (patch) | |
tree | c04804beb5c21220ec31328a395ad4ba6f2eab62 /klippy/gcode.py | |
parent | 08874b9c91544c012763766c51b6a0c279972140 (diff) | |
download | kutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.tar.gz kutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.tar.xz kutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |