From 6c9b0b8800f86ed4393ef233122edb4da2feaa4c Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 5 Feb 2020 16:44:31 -0800 Subject: [PATCH] NTScalar w/ string still has description/units --- src/nt.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nt.cpp b/src/nt.cpp index 18ed33a..c53a497 100644 --- a/src/nt.cpp +++ b/src/nt.cpp @@ -41,6 +41,14 @@ TypeDef NTScalar::build() const String("units"), }), }; + } else if(display && !isnumeric) { + def += { + Struct("display", { + String("description"), + //String("format"), + String("units"), + }), + }; } if(control && isnumeric) {