From 8de86ad51f344d6626b4c9826b0adceaa5ba9057 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Jan 2021 15:37:37 -0500 Subject: [PATCH] rpi_temperature: 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/rpi_temperature.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klippy/extras/rpi_temperature.py b/klippy/extras/rpi_temperature.py index d1beed9d..f49bce1b 100644 --- a/klippy/extras/rpi_temperature.py +++ b/klippy/extras/rpi_temperature.py @@ -62,8 +62,9 @@ class RPiTemperature: "RPi temperature %0.1f above maximum temperature of %0.1f." % (self.temp, self.max_temp,)) + mcu = self.printer.lookup_object('mcu') measured_time = self.reactor.monotonic() - self._callback(measured_time, self.temp) + self._callback(mcu.estimated_print_time(measured_time), self.temp) return measured_time + RPI_REPORT_TIME def get_status(self, eventtime):