Skip to content

Commit

Permalink
input controller pre-output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Apr 26, 2023
1 parent 44ac00b commit 8854856
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mycodo/controllers/controller_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,14 @@ def loop(self):
else:
# Pre-output has turned off, now measure
self.update_measure()

self.pre_output_activated = False
self.get_new_measurement = False
finally:
# always remove lock
self.lf.lock_release(self.pre_output_lock_file)
else:
self.logger.error(f"Pre-output lock not found at {self.pre_output_lock_file}")

self.pre_output_activated = False
self.get_new_measurement = False

elif not self.pre_output_setup:
# Pre-output not enabled, just measure
self.update_measure()
Expand Down

0 comments on commit 8854856

Please sign in to comment.