From 5d960aef37f6c46a5756f918b2368cfdd580a493 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Jan 2021 15:38:16 -0500 Subject: [PATCH] htu21d: Fix time reporting of temperature measurements The temperature callback takes a "print time" not a "system time". Signed-off-by: Kevin O'Connor --- klippy/extras/htu21d.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):