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 <kevin@koconnor.net>
This commit is contained in:
parent
bded15b743
commit
8de86ad51f
|
@ -62,8 +62,9 @@ class RPiTemperature:
|
||||||
"RPi temperature %0.1f above maximum temperature of %0.1f."
|
"RPi temperature %0.1f above maximum temperature of %0.1f."
|
||||||
% (self.temp, self.max_temp,))
|
% (self.temp, self.max_temp,))
|
||||||
|
|
||||||
|
mcu = self.printer.lookup_object('mcu')
|
||||||
measured_time = self.reactor.monotonic()
|
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
|
return measured_time + RPI_REPORT_TIME
|
||||||
|
|
||||||
def get_status(self, eventtime):
|
def get_status(self, eventtime):
|
||||||
|
|
Loading…
Reference in New Issue