handle reference undulator not answering
This commit is contained in:
@ -365,7 +365,10 @@ class ScalerEK:
|
|||||||
|
|
||||||
|
|
||||||
def get_machine_n_und_ref():
|
def get_machine_n_und_ref():
|
||||||
res = PVEnumAdjustable("SARUN:REF-UND").get()
|
adj = PVEnumAdjustable("SARUN:REF-UND")
|
||||||
|
res = adj.get()
|
||||||
|
if res is None:
|
||||||
|
return None
|
||||||
if not res.startswith("SARUN"):
|
if not res.startswith("SARUN"):
|
||||||
return None
|
return None
|
||||||
n = len("SARUN")
|
n = len("SARUN")
|
||||||
|
Reference in New Issue
Block a user