From effae5ca6e71776d386d5775cc128686121f3488 Mon Sep 17 00:00:00 2001 From: Max Rakitin Date: Fri, 17 May 2024 15:52:20 -0400 Subject: [PATCH] Fix condition for saving based on dev_type --- src/srx_caproto_iocs/zebra/caproto_ioc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/srx_caproto_iocs/zebra/caproto_ioc.py b/src/srx_caproto_iocs/zebra/caproto_ioc.py index 1f39217..0f2b913 100644 --- a/src/srx_caproto_iocs/zebra/caproto_ioc.py +++ b/src/srx_caproto_iocs/zebra/caproto_ioc.py @@ -163,7 +163,7 @@ async def _get_current_dataset( # # pvobject = pvobjects[0] # ret = await pvobject.read() - if self.dev_type == DevTypes.ZEBRA: + if self.dev_type.value == DevTypes.ZEBRA.value: pvnames = ["enc1", "enc2", "enc3", "zebra_time"] else: pvnames = ["i0", "im", "it", "sis_time"]