comparison Control.py @ 15:0ec70371cfcf

Whitespace
author darius
date Tue, 29 Jan 2008 11:27:20 +0000
parents 8ada8d5cca15
children
comparison
equal deleted inserted replaced
14:8ada8d5cca15 15:0ec70371cfcf
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 ############################################################################ 3 ############################################################################
4 # Control class for beermon 4 # Control class for beermon
5 # 5 #
6 # $Id: Control.py,v 1.3 2007/10/23 01:05:21 darius Exp $ 6 # $Id: Control.py,v 1.4 2008/01/29 11:27:20 darius Exp $
7 # 7 #
8 # Depends on: Python 2.3 (I think) 8 # Depends on: Python 2.3 (I think)
9 # 9 #
10 ############################################################################ 10 ############################################################################
11 # 11 #
68 68
69 def doit(self): 69 def doit(self):
70 """Runs forever controlling the temperature until something breaks or interrupted""" 70 """Runs forever controlling the temperature until something breaks or interrupted"""
71 log.debug("=== Starting ===") 71 log.debug("=== Starting ===")
72 log.debug("Fermenter Fridge Ambient State New State") 72 log.debug("Fermenter Fridge Ambient State New State")
73
73 while True: 74 while True:
74 # Check if the monitor thread has died 75 # Check if the monitor thread has died
75 if (not self.m.isAlive()): 76 if (not self.m.isAlive()):
76 raise ThreadDied, "Monitor thread has died" 77 raise ThreadDied, "Monitor thread has died"
77 78