# HG changeset patch # User Matt Johnston # Date 1418999681 -28800 # Node ID 9b98091ca5735c124011fa91256d4019ed79b8c2 # Parent 838e868a046e869959f20592274e6cfb9e3fcd26 Fridge.is_off() wasn't a method diff -r 838e868a046e -r 9b98091ca573 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