fixed a bug: pv.connected does NOT wait for the connection to be established, asking to quickly will result in False

This commit is contained in:
2020-09-11 16:12:05 +02:00
parent 0fed62e890
commit 7ecc9dc247
+1 -1
View File
@@ -51,7 +51,7 @@ class get_current_pulseid():
pulseid_pv = PULSEID_PVS.get(beamline)
if pulseid_pv:
pv = epics.PV(pulseid_pv)
if pv.connected:
if pv.wait_for_connection():
self.get = pv.get
def __call__(self):