From c54d83c9f134d47f00da5ecd0d762e01748aaa59 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 15 Mar 2023 16:46:35 -0400 Subject: [PATCH] tmc: Initialize self.coolthrs in TMCVirtualPinHelper constructor Signed-off-by: Kevin O'Connor --- klippy/extras/tmc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py index 55ccdfb4..ba1bc41c 100644 --- a/klippy/extras/tmc.py +++ b/klippy/extras/tmc.py @@ -437,7 +437,7 @@ class TMCVirtualPinHelper: self.diag_pin_field = None self.mcu_endstop = None self.en_pwm = False - self.pwmthrs = 0 + self.pwmthrs = self.coolthrs = 0 # Register virtual_endstop pin name_parts = config.get_name().split() ppins = self.printer.lookup_object("pins")