aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 0376ed56..0cb54343 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -105,6 +105,10 @@ class Heater:
self.control = control
self.target_temp = 0.
return old_control
+ def alter_target(self, target_temp):
+ if target_temp:
+ target_temp = max(self.min_temp, min(self.max_temp, target_temp))
+ self.target_temp = target_temp
def stats(self, eventtime):
with self.lock:
target_temp = self.target_temp