diff options
author | Arksine <arksine.code@gmail.com> | 2019-10-21 07:27:39 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-10-22 22:10:13 -0400 |
commit | dd12c981efaca21942f73c01f479fee553314efa (patch) | |
tree | e4e9ee1495df90d62c334c36d83afed112fd10c9 | |
parent | d85b395a9cf4aae1f9d9535942c4b9f7ab86b3db (diff) | |
download | kutter-dd12c981efaca21942f73c01f479fee553314efa.tar.gz kutter-dd12c981efaca21942f73c01f479fee553314efa.tar.xz kutter-dd12c981efaca21942f73c01f479fee553314efa.zip |
temperature_fan: add get_status() function
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r-- | klippy/extras/temperature_fan.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |