From 2797fd3f483a6d0d67336cb89d060eadbe21963e Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 17 Jul 2023 07:19:23 -0700 Subject: [PATCH] include display.description for NTScalar("s") --- src/p4p/nt/scalar.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p4p/nt/scalar.py b/src/p4p/nt/scalar.py index 1a0c2ea7..683cab8a 100644 --- a/src/p4p/nt/scalar.py +++ b/src/p4p/nt/scalar.py @@ -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, [