Skip to content

Commit

Permalink
Fix default initial value for TRIGGER field of SEQ table
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Sep 14, 2023
1 parent 35360f4 commit d4103a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pandablocks_ioc/_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ def __init__(
scalar_record = builder.mbbIn(
scalar_record_name,
*field_details.labels,
initial_value=field_details.labels.index(initial_value),
initial_value=field_details.labels.index(initial_value)
if isinstance(initial_value, str)
else initial_value,
DESC=scalar_record_desc,
)

Expand Down

0 comments on commit d4103a0

Please sign in to comment.