Преглед на файлове

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 години
родител
ревизия
f14c2b6639
променени са 1 файла, в които са добавени 9 реда и са изтрити 6 реда
  1. +9
    -6
      modules/base_plugins/brew_steps/__init__.py

+ 9
- 6
modules/base_plugins/brew_steps/__init__.py Целия файл

@@ -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…
Отказ
Запис