kopia lustrzana https://github.com/botheredbybees/kilnController
be a little 'softer' with errors
rodzic
0673f9ea9d
commit
40bb54e521
|
@ -234,7 +234,10 @@ class TempSensorReal(TempSensor):
|
|||
|
||||
def run(self):
|
||||
while True:
|
||||
self.temperature = self.thermocouple.get()
|
||||
try:
|
||||
self.temperature = self.thermocouple.get()
|
||||
except Exception as ex:
|
||||
log.error(ex, "problem reading temp")
|
||||
time.sleep(self.time_step)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue