tmc: Initialize self.coolthrs in TMCVirtualPinHelper constructor

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2023-03-15 16:46:35 -04:00
parent a9feeaa9eb
commit c54d83c9f1
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ class TMCVirtualPinHelper:
self.diag_pin_field = None self.diag_pin_field = None
self.mcu_endstop = None self.mcu_endstop = None
self.en_pwm = False self.en_pwm = False
self.pwmthrs = 0 self.pwmthrs = self.coolthrs = 0
# Register virtual_endstop pin # Register virtual_endstop pin
name_parts = config.get_name().split() name_parts = config.get_name().split()
ppins = self.printer.lookup_object("pins") ppins = self.printer.lookup_object("pins")