Stop sending errors

main
Valentin Ochs 2022-11-26 14:16:49 +01:00
parent 4b275b0f43
commit ac5acdf46d
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ ERROR_THRESHOLD = 350
OPEN_THRESHOLD = 190
CLOSED_THRESHOLD = 6*7
CLOSED_WANT = 4*7
MIN_IDLE_TIME = 0
MIN_IDLE_TIME = 0.5
UPDATE_RATE = 1
MAX_UPDATE_RATE = 20

View File

@ -74,9 +74,9 @@ class Control(util.Loggable):
if self.position() < constants.CLOSED_THRESHOLD:
self.state(state.CLOSE)
self._control_update.notify()
elif self.position() > constants.ERROR_THRESHOLD:
self.state(state.ERROR)
self._control_update.notify()
#elif self.position() > constants.ERROR_THRESHOLD:
# self.state(state.ERROR)
# self._control_update.notify()
elif self.position() > constants.OPEN_THRESHOLD:
self.state(state.OPEN)
self._control_update.notify()