Skip to content

Commit

Permalink
Add command initialisation on record creation
Browse files Browse the repository at this point in the history
This clears the invalid alarm status that the records would otherwise
have until processed the first time.
  • Loading branch information
GDYendell committed Apr 5, 2024
1 parent 0e16023 commit 0efba51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fastcs/backends/epics/ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _create_and_link_command_pv(pv_name: str, method: Callable) -> None:
async def wrapped_method(_: Any):
await method()

builder.aOut(pv_name, always_update=True, on_update=wrapped_method)
builder.aOut(pv_name, initial_value=0, always_update=True, on_update=wrapped_method)


def _create_and_link_attribute_pvs(mapping: Mapping) -> None:
Expand Down

0 comments on commit 0efba51

Please sign in to comment.