# HG changeset patch # User Matt Johnston # Date 1418999681 -28800 # Node ID 720809f6c9681a9efe7fac3039f1f5dd305803e9 # Parent 2515240819241ebe3ce709c8ef9458f049b7fd17 Fridge.is_off() wasn't a method diff -r 251524081924 -r 720809f6c968 py/fridge.py --- a/py/fridge.py Fri Dec 19 22:32:59 2014 +0800 +++ b/py/fridge.py Fri Dec 19 22:34:41 2014 +0800 @@ -75,7 +75,7 @@ # Safety to avoid bad things happening to the fridge motor (?) # When it turns off don't start up again for at least FRIDGE_DELAY - if self.is_off() and off_time < config.FRIDGE_DELAY: + if not self.is_on() and off_time < config.FRIDGE_DELAY: L("fridge skipping, too early") return