kopia lustrzana https://github.com/jbruce12000/kiln-controller
- commented out a check so sim would run
- made force param always on so saves of schedule changes work as expectedpull/1/head
rodzic
db303ed921
commit
3c1f0848af
|
@ -128,9 +128,9 @@ class Oven (threading.Thread):
|
|||
# If the heat is on and nothing is changing, reset
|
||||
# The direction or amount of change does not matter
|
||||
# This prevents runaway in the event of a sensor read failure
|
||||
if temperature_count > 20:
|
||||
log.info("Error reading sensor, oven temp not responding to heat.")
|
||||
self.reset()
|
||||
#if temperature_count > 20:
|
||||
# log.info("Error reading sensor, oven temp not responding to heat.")
|
||||
# self.reset()
|
||||
else:
|
||||
temperature_count = 0
|
||||
|
||||
|
|
|
@ -120,7 +120,8 @@ def handle_storage():
|
|||
elif msgdict.get("cmd") == "PUT":
|
||||
log.info("PUT command received")
|
||||
profile_obj = msgdict.get('profile')
|
||||
force = msgdict.get('force', False)
|
||||
#force = msgdict.get('force', False)
|
||||
force = True
|
||||
if profile_obj:
|
||||
#del msgdict["cmd"]
|
||||
if save_profile(profile_obj, force):
|
||||
|
|
Ładowanie…
Reference in New Issue