make ctrl-c work again (daemon threads)

MAX31855-EH
Sebastian Steuer 2013-11-23 23:54:45 +01:00
rodzic ee42970341
commit e1c4df4d93
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -13,6 +13,7 @@ class Oven (threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.daemon = True
self.profile = None
self.start_time = 0
self.power = 0.0
@ -67,6 +68,8 @@ class TempSensor(threading.Thread):
def __init__(self,oven):
threading.Thread.__init__(self)
self.daemon = True
self.temperature = 0
self.oven = oven

Wyświetl plik

@ -28,6 +28,8 @@ def notifyAll(message):
class OvenWatcher(threading.Thread):
def __init__(self,oven):
threading.Thread.__init__(self)
self.daemon = True
self.oven = oven
def run(self):