From f1f8209b8948db011a513c69c430df95d0f02249 Mon Sep 17 00:00:00 2001 From: Mark Spicer Date: Tue, 17 Nov 2015 01:19:29 -0500 Subject: [PATCH] Fixes an issue with cooling updating the target temperature. --- openroast/controllers/recipe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openroast/controllers/recipe.py b/openroast/controllers/recipe.py index 7376513..bdbbbf0 100644 --- a/openroast/controllers/recipe.py +++ b/openroast/controllers/recipe.py @@ -85,13 +85,12 @@ def reset_roaster_settings(self): def set_roaster_settings(self, targetTemp, fanSpeed, sectionTime, cooling): if cooling: openroast.roaster.cool() - else: - openroast.roaster.target_temp = targetTemp # Prevent the roaster from starting when section time = 0 (ex clear) if(not cooling and sectionTime > 0 and self.currentRecipeStep > 0): openroast.roaster.roast() + openroast.roaster.target_temp = targetTemp openroast.roaster.fan_speed = fanSpeed openroast.roaster.time_remaining = sectionTime