Reverting the device.c change that accidentally removed OBJECT_LIST from array error in r2870. Fix for [bugs:#37]. Thank you, klata!

This commit is contained in:
skarg
2015-10-15 18:08:12 +00:00
parent 8a83e12b5d
commit 73190ed0c4
+1 -1
View File
@@ -1444,7 +1444,7 @@ int Device_Read_Property_Local(
break;
}
/* only array properties can have array options */
if ((apdu_len >= 0) &&
if ((apdu_len >= 0) && (rpdata->object_property != PROP_OBJECT_LIST) &&
(rpdata->array_index != BACNET_ARRAY_ALL)) {
rpdata->error_class = ERROR_CLASS_PROPERTY;
rpdata->error_code = ERROR_CODE_PROPERTY_IS_NOT_AN_ARRAY;