Changed array element 0 to be more clear in the code.
This commit is contained in:
@@ -200,7 +200,7 @@ int Binary_Value_Encode_Property_APDU(uint8_t * apdu,
|
||||
break;
|
||||
case PROP_PRIORITY_ARRAY:
|
||||
/* Array element zero is the number of elements in the array */
|
||||
if (array_index == BACNET_ARRAY_LENGTH_INDEX)
|
||||
if (array_index == 0)
|
||||
apdu_len =
|
||||
encode_tagged_unsigned(&apdu[0], BACNET_MAX_PRIORITY);
|
||||
/* if no index was specified, then try to encode the entire list */
|
||||
|
||||
Reference in New Issue
Block a user