mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-03 12:04:07 -06:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue