From dd12c981efaca21942f73c01f479fee553314efa Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 21 Oct 2019 07:27:39 -0400 Subject: [PATCH] temperature_fan: add get_status() function Signed-off-by: Eric Callahan --- klippy/extras/temperature_fan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/klippy/extras/temperature_fan.py b/klippy/extras/temperature_fan.py index 3083f488..d009d251 100644 --- a/klippy/extras/temperature_fan.py +++ b/klippy/extras/temperature_fan.py @@ -65,6 +65,11 @@ class TemperatureFan: return self.min_speed def get_max_speed(self): return self.max_speed + def get_status(self, eventtime): + status = self.fan.get_status(eventtime) + status["temperature"] = self.last_temp + status["target"] = self.target_temp + return status cmd_SET_TEMPERATURE_FAN_TARGET_TEMP_help = "Sets a temperature fan target" def cmd_SET_TEMPERATURE_FAN_TARGET_TEMP(self, params): temp = self.gcode.get_float('TARGET', params, self.target_temp_conf)