verify_heater: Add initial support for verifying heaters and sensors
Add runtime checks to heaters and temperature sensors to check for possible hardware faults. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -141,6 +141,8 @@ class PrinterHeater:
|
||||
# pwm caching
|
||||
self.next_pwm_time = 0.
|
||||
self.last_pwm_value = 0.
|
||||
# Load verify_heater module
|
||||
printer.try_load_module(config, "verify_heater %s" % (self.name,))
|
||||
def set_pwm(self, read_time, value):
|
||||
if self.target_temp <= 0.:
|
||||
value = 0.
|
||||
|
Reference in New Issue
Block a user