diff options
author | Jon Sanders <jonsan@gmail.com> | 2021-03-18 23:38:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 23:38:07 -0400 |
commit | 6c9404ac0c3925ccaa03f1a2046fe00499758495 (patch) | |
tree | 6983917956925d1b89bde573322803d52c43be93 | |
parent | 2144f716f6704b88179237c998bf790fc1085f0c (diff) | |
download | kutter-6c9404ac0c3925ccaa03f1a2046fe00499758495.tar.gz kutter-6c9404ac0c3925ccaa03f1a2046fe00499758495.tar.xz kutter-6c9404ac0c3925ccaa03f1a2046fe00499758495.zip |
htu21d: sensor definition fix (#4075)
HTU21D sensor class lacked the method `get_report_time_delta` invoked
during watermark control loops. This short fix simply adds that method
in, calling the `self.report_time` attribute created during class
construction.
Signed-off-by: Jon Sanders <jonsan@gmail.com>
-rw-r--r-- | klippy/extras/htu21d.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/extras/htu21d.py b/klippy/extras/htu21d.py index 571642de..68299418 100644 --- a/klippy/extras/htu21d.py +++ b/klippy/extras/htu21d.py @@ -109,6 +109,9 @@ class HTU21D: def setup_callback(self, cb): self._callback = cb + def get_report_time_delta(self): + return self.report_time + def _init_htu21d(self): # Device Soft Reset self.i2c.i2c_write([HTU21D_COMMANDS['RESET']]) |