From e154c30ab1a5913a95c173dc15b3c76c38c5f9ad Mon Sep 17 00:00:00 2001 From: Zeanon Date: Sun, 15 Oct 2023 16:38:21 +0200 Subject: [PATCH] Update heaters.py --- klippy/extras/heaters.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py index 4186de03e81e..ec9e66dbaf81 100644 --- a/klippy/extras/heaters.py +++ b/klippy/extras/heaters.py @@ -311,18 +311,19 @@ def init_default_profile(self): return self._init_profile(self.outer_instance.config, 'default') def set_values(self, profile_name, gcmd, verbose): + current_profile = self.outer_instance.get_control().get_profile() target = self._check_value_gcmd('TARGET', None, gcmd, float, False) tolerance = self._check_value_gcmd('TOLERANCE', - None, + current_profile['tolerance'], gcmd, float, False) control = self._check_value_gcmd('CONTROL', - None, + current_profile['control'], gcmd, 'lower', False)