Mercurial > templog
diff py/fridge.py @ 148:b32e5a11a4cb
few updates, seems to run
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 15 Dec 2012 23:49:08 +0800 |
parents | 6517ddee3187 |
children | d686b111dab4 |
line wrap: on
line diff
--- a/py/fridge.py Sun Dec 09 20:07:15 2012 +0800 +++ b/py/fridge.py Sat Dec 15 23:49:08 2012 +0800 @@ -22,7 +22,7 @@ with open(dir_fn, 'w') as f: f.write('low') val_fn = '%s/value' % config.FRIDGE_GPIO - self.value_file = f.open(val_fn, 'r+') + self.value_file = open(val_fn, 'r+') def turn(self, value): self.value_file.seek(0)