Changed array element 0 to be more clear in the code.

This commit is contained in:
skarg
2007-02-08 21:57:47 +00:00
parent fee2356d30
commit bfc82bd07d
10 changed files with 46 additions and 16 deletions
+1 -1
View File
@@ -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 */