mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-06 21:44:13 -06:00
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:
parent
b549c3927e
commit
5208fc38ed
4 changed files with 91 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue