Browse Source

Fixed hop time not checked if temperature dropped below setpoint

Hop time was not being checked in case the temperature dropped below the setpoint, even when into the offset margin.

Now it's being checked every iteration after the timer starts.
pull/172/head
Rhuan Costa 7 years ago
parent
commit
f14c2b6639
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      modules/base_plugins/brew_steps/__init__.py

+ 9
- 6
modules/base_plugins/brew_steps/__init__.py View File

@@ -217,12 +217,15 @@ class BoilStep(StepBase):
# Check if Timer is Running
if self.is_timer_finished() is None:
self.start_timer(int(self.timer) * 60)
else:
self.check_hop_timer(1, self.hop_1)
self.check_hop_timer(2, self.hop_2)
self.check_hop_timer(3, self.hop_3)
self.check_hop_timer(4, self.hop_4)
self.check_hop_timer(5, self.hop_5)
# Check if hop time reached
if self.is_timer_finished() == False:
self.check_hop_timer(1, self.hop_1)
self.check_hop_timer(2, self.hop_2)
self.check_hop_timer(3, self.hop_3)
self.check_hop_timer(4, self.hop_4)
self.check_hop_timer(5, self.hop_5)
# Check if timer finished and go to next step
if self.is_timer_finished() == True:
self.notify("Boil Step Completed!", "Starting the next step", timeout=None)


Loading…
Cancel
Save