Corrected priority array for read property when elements are read individually.

This commit is contained in:
skarg
2007-01-15 15:55:44 +00:00
parent 113578f3d6
commit 3506c8f95c
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -238,12 +238,12 @@ int Multistate_Output_Encode_Property_APDU(uint8_t * apdu,
if (array_index <= BACNET_MAX_PRIORITY) {
if (Multistate_Output_Level[object_index][array_index] ==
MULTISTATE_NULL)
len = encode_tagged_null(&apdu[apdu_len]);
apdu_len = encode_tagged_null(&apdu[0]);
else {
present_value =
Multistate_Output_Level[object_index][array_index];
len =
encode_tagged_unsigned(&apdu[apdu_len],
apdu_len =
encode_tagged_unsigned(&apdu[0],
present_value);
}
} else {