Merge pull request #232 from Tirpitz93/Lower_temp_cut

Lower temp cut
This commit was merged in pull request #232.
This commit is contained in:
Vitor de Miranda Henrique
2019-03-29 11:06:58 -03:00
committed by GitHub

View File

@@ -695,7 +695,9 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
try:
calculated_duty = ((current_temp - temp_a) * (duty_b - duty_a) / (temp_b - temp_a)) + duty_a
calculated_duty = self.constrain(calculated_duty, duty_a,100)
if current_temp < temp_a:
calculated_duty = 0
except:
calculated_duty = 0