handle reference undulator not answering

This commit is contained in:
2025-01-28 17:36:31 +01:00
parent b10696c064
commit c4d05d83f4

View File

@ -365,7 +365,10 @@ class ScalerEK:
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"):
return None
n = len("SARUN")