Skip to content

Commit

Permalink
Updated prefixes and missed component updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Cunningham committed Sep 25, 2024
1 parent 192b95d commit 03c8429
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pandablocks_ioc/_pvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ def add_automatic_pvi_info(
if record_name == "PCAP:ARM":
component = SignalRW(
name=pvi_name,
read_pv=record_name,
# write_pv=record_name,
widget=ButtonPanel(actions={"Arm": "1", "Disarm": "0"}),
write_pv=record_name,
write_widget=ButtonPanel(actions={"Arm": "1", "Disarm": "0"}),
read_widget=LED(),
)
access = "rw"
Expand Down Expand Up @@ -156,8 +155,7 @@ def add_automatic_pvi_info(
else:
widget = TextRead(format=None)

component = SignalR(name=pvi_name, read_pv=record_name)
# , read_widget=widget
component = SignalR(name=pvi_name, read_pv=record_name, read_widget=widget)
access = "r"

add_pvi_info_to_record(record, record_name, access)
Expand Down

0 comments on commit 03c8429

Please sign in to comment.