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:
Kevin O'Connor
2018-03-11 00:22:44 -05:00
parent b549c3927e
commit 5208fc38ed
4 changed files with 91 additions and 4 deletions

View File

@@ -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.