From d120a313b75a41e6d3ae1f53cda9dbd6e1d31615 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 14 May 2025 18:47:36 -0400 Subject: docs: Note 'config' object shouldn't be accessed after initial load Update Code_Overview.md to note that the config object should not be stored after the "config loading phase". Remove a few inadvertent cases where a 'config' object was stored in module member variables. Signed-off-by: Kevin O'Connor --- klippy/extras/z_thermal_adjust.py | 1 - 1 file changed, 1 deletion(-) (limited to 'klippy/extras/z_thermal_adjust.py') diff --git a/klippy/extras/z_thermal_adjust.py b/klippy/extras/z_thermal_adjust.py index 4cf3a669..a3a5997e 100644 --- a/klippy/extras/z_thermal_adjust.py +++ b/klippy/extras/z_thermal_adjust.py @@ -16,7 +16,6 @@ class ZThermalAdjuster: self.printer = config.get_printer() self.gcode = self.printer.lookup_object('gcode') self.lock = threading.Lock() - self.config = config # Get config parameters, convert to SI units where necessary self.temp_coeff = config.getfloat('temp_coeff', minval=-1, maxval=1, -- cgit v1.2.3-70-g09d2