Skip to content

Commit

Permalink
Merge pull request #295 from lnls-sirius/fix-sofb-write
Browse files Browse the repository at this point in the history
Fix bug in TI and SOFB write
  • Loading branch information
anacso17 authored Sep 11, 2023
2 parents 9978ff8 + 239e59f commit d6c378b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.43.0
3.43.1
3 changes: 2 additions & 1 deletion as-ap-sofb/as_ap_sofb/as_ap_sofb.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def read(self, reason):
def write(self, reason, value):
if not self._isValid(reason, value):
return False
self._write_queue.put(self._write, (reason, value))
self._write_queue.put(
(self._write, (reason, value)), block=False)
return True

def _write(self, reason, value):
Expand Down
3 changes: 2 additions & 1 deletion as-ti-control/as_ti_control/as_ti_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def read(self, reason):
def write(self, reason, value):
if not self._isValid(reason, value):
return False
self._write_queue.put(self._write, (reason, value))
self._write_queue.put(
(self._write, (reason, value)), block=False)
return True

def _write(self, reason, value):
Expand Down

0 comments on commit d6c378b

Please sign in to comment.