Skip to content

Commit

Permalink
Fixes an issue with cooling updating the target temperature.
Browse files Browse the repository at this point in the history
  • Loading branch information
betterengineering committed Nov 17, 2015
1 parent f3cbb59 commit f1f8209
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openroast/controllers/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f1f8209

Please sign in to comment.