浏览代码

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)


正在加载...
取消
保存