Bugfix/print property name units lighting (#313)

* Fix EPICS property name proprietary range

* Fix Lighting Command decode length

* add function to determine property name and units proprietary range

* improve test coverage for AI, AO, AV, BI, BO, BV, LO

* refactor common property encoding to proplist module

* add decoder for priority array

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-07-29 17:11:38 -05:00
committed by GitHub
parent 731e951106
commit a945588340
18 changed files with 622 additions and 309 deletions
+4 -4
View File
@@ -793,10 +793,10 @@ static void PrintReadPropertyData(BACNET_OBJECT_TYPE object_type,
*/
static void Print_Property_Identifier(unsigned propertyIdentifier)
{
if (propertyIdentifier < 512) {
fprintf(stdout, "%s", bactext_property_name(propertyIdentifier));
} else {
if (bactext_property_name_proprietary(propertyIdentifier)) {
fprintf(stdout, "-- proprietary %u", propertyIdentifier);
} else {
fprintf(stdout, "%s", bactext_property_name(propertyIdentifier));
}
}
@@ -1675,7 +1675,7 @@ int main(int argc, char *argv[])
myState = PRINT_HEADING;
/* just press ahead without the data */
} else {
myState = NEXT_OBJECT;
myState = NEXT_OBJECT;
}/* Give up and move on to the
next. */
Error_Count++;