Skip to content

Commit

Permalink
Fix condition for saving based on dev_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin authored and SRX Operator committed May 17, 2024
1 parent 246d885 commit effae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/srx_caproto_iocs/zebra/caproto_ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit effae5c

Please sign in to comment.