Skip to content

Commit

Permalink
Merge pull request #227 from ZLLentz/fix-pyepics
Browse files Browse the repository at this point in the history
Pyepics plugin race condition in send_access_state callback
  • Loading branch information
hhslepicka authored Jan 22, 2018
2 parents 5a480ed + 4218dbd commit 22fcba2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class Connection(PyDMConnection):

def __init__(self, channel, pv, protocol=None, parent=None):
super(Connection, self).__init__(channel, pv, protocol, parent)
self.app = QApplication.instance()
self.pv = epics.PV(pv, connection_callback=self.send_connection_state, form='ctrl', auto_monitor=True, access_callback=self.send_access_state)
self.pv.add_callback(self.send_new_value, with_ctrlvars=True)
self.add_listener(channel)

self.app = QApplication.instance()
self._severity = None
self._precision = None
self._enum_strs = None
Expand Down

0 comments on commit 22fcba2

Please sign in to comment.