Skip to content

Commit

Permalink
Update heaters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Oct 15, 2023
1 parent f97ec3f commit e154c30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions klippy/extras/heaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e154c30

Please sign in to comment.