comparison py/fridge.py @ 578:358293768234

fix missing on_time variable
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Nov 2015 08:42:33 +0800
parents ccfaa4351fd8
children 6087c692d381
comparison
equal deleted inserted replaced
577:c3bad5ceb560 578:358293768234
90 90
91 D("fridge on %s" % self.is_on()) 91 D("fridge on %s" % self.is_on())
92 92
93 if self.is_on(): 93 if self.is_on():
94 turn_off = False 94 turn_off = False
95 on_percent = self.integrator.integrate() / params.overshoot_delay 95 on_time = self.integrator.integrate()
96 on_percent = on_time / params.overshoot_delay
96 97
97 overshoot = params.overshoot_factor * on_percent 98 overshoot = params.overshoot_factor * on_percent
98 D("on_time %(on_percent)f, overshoot %(overshoot)f" % locals()) 99 D("on_time %(on_percent)f, overshoot %(overshoot)f" % locals())
99 100
100 if not params.nowort and wort is not None: 101 if not params.nowort and wort is not None: