kopia lustrzana https://github.com/botheredbybees/kilnController
make ctrl-c work again (daemon threads)
rodzic
ee42970341
commit
e1c4df4d93
3
oven.py
3
oven.py
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue