From 4d3d25b1f799e98e5c8a86b0a24e8507ecfb918e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 1 Mar 2021 14:57:40 -0500 Subject: fan: Minor updates to tachometer handling Add new fields to Command_Templates.md. Remove unused self.rpm variable. Use an explicit get_frequency() method in keeping with Klipper's convention of not "peeking into member variables". Signed-off-by: Kevin O'Connor --- klippy/extras/pulse_counter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/extras/pulse_counter.py') diff --git a/klippy/extras/pulse_counter.py b/klippy/extras/pulse_counter.py index 00038f01..a952b7f8 100644 --- a/klippy/extras/pulse_counter.py +++ b/klippy/extras/pulse_counter.py @@ -74,6 +74,5 @@ class FrequencyCounter: self._callback(time, self._freq) self._last_count = count - @property - def frequency(self): + def get_frequency(self): return self._freq -- cgit v1.2.3-70-g09d2