aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-01-24 15:38:16 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-01-24 15:38:16 -0500
commit5d960aef37f6c46a5756f918b2368cfdd580a493 (patch)
tree9afe06e391861877a0efc9c01fb565da767ebf38
parent8de86ad51f344d6626b4c9826b0adceaa5ba9057 (diff)
downloadkutter-5d960aef37f6c46a5756f918b2368cfdd580a493.tar.gz
kutter-5d960aef37f6c46a5756f918b2368cfdd580a493.tar.xz
kutter-5d960aef37f6c46a5756f918b2368cfdd580a493.zip
htu21d: Fix time reporting of temperature measurements
The temperature callback takes a "print time" not a "system time". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/htu21d.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/htu21d.py b/klippy/extras/htu21d.py
index 20ac1483..2a7237da 100644
--- a/klippy/extras/htu21d.py
+++ b/klippy/extras/htu21d.py
@@ -212,7 +212,8 @@ class HTU21D:
return self.reactor.NEVER
measured_time = self.reactor.monotonic()
- self._callback(measured_time, self.temp)
+ print_time = self.i2c.get_mcu().estimated_print_time(measured_time)
+ self._callback(print_time, self.temp)
return measured_time + self.report_time
def _chekCRC8(self,data):