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:
+4
-4
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user