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/mcu.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/mcu.py')
-rw-r--r-- | klippy/mcu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py index 87c590a8..ce85c4c8 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -747,8 +747,8 @@ class MCU: msg = "%s: mcu_awake=%.03f mcu_task_avg=%.06f mcu_task_stddev=%.06f" % ( self._name, self._mcu_tick_awake, self._mcu_tick_avg, self._mcu_tick_stddev) - return ' '.join([msg, self._serial.stats(eventtime), - self._clocksync.stats(eventtime)]) + return False, ' '.join([msg, self._serial.stats(eventtime), + self._clocksync.stats(eventtime)]) def printer_state(self, state): if state == 'connect': self._connect() |