Skip to content

Commit

Permalink
include display.description for NTScalar("s")
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jul 17, 2023
1 parent 23e26ca commit 2797fd3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/p4p/nt/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ def _metaHelper(F, valtype, display=False, control=False, valueAlarm=False):
('units', 's'),
])),
])
elif display and not isnumeric:
F.extend([
('display', ('S', None, [
('description', 's'),
('units', 's'),
])),
])
if control and isnumeric:
F.extend([
('control', ('S', None, [
Expand Down

0 comments on commit 2797fd3

Please sign in to comment.