Mercurial > templog
diff py/fridge.py @ 477:d05b1612e19e
a few fixes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 30 Jan 2014 22:55:27 +0800 |
parents | 06de0f2ffa26 |
children | 3f187baa3439 |
line wrap: on
line diff
--- a/py/fridge.py Thu Jul 25 08:05:40 2013 +0800 +++ b/py/fridge.py Thu Jan 30 22:55:27 2014 +0800 @@ -104,9 +104,8 @@ / self.OVERSHOOT_MAX_DIV D("on_time %(on_time)f, overshoot %(overshoot)f" % locals()) - if not params.nowort \ - and wort is not None \ - and (wort - overshoot) < params.fridge_setpoint: + if not params.nowort and wort is not None: + if wort - overshoot < params.fridge_setpoint: L("wort has cooled enough, %(wort)f" % locals() ) turn_off = True elif fridge is not None and fridge < fridge_min: