Corrected Binary output and value in some demos that didn't return the priority array element correctly.

This commit is contained in:
skarg
2009-10-07 22:14:31 +00:00
parent 1c82dda7d6
commit d88d85b5cd
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -287,11 +287,11 @@ int Binary_Output_Encode_Property_APDU(
if (array_index <= BACNET_MAX_PRIORITY) {
if (Binary_Output_Level[object_index][array_index - 1] ==
BINARY_NULL)
len = encode_application_null(&apdu[apdu_len]);
apdu_len = encode_application_null(&apdu[apdu_len]);
else {
present_value =
Binary_Output_Level[object_index][array_index - 1];
len =
apdu_len =
encode_application_enumerated(&apdu[apdu_len],
present_value);
}
+2 -2
View File
@@ -278,11 +278,11 @@ int Binary_Value_Encode_Property_APDU(
if (array_index <= BACNET_MAX_PRIORITY) {
if (Binary_Value_Level[object_index][array_index] ==
BINARY_NULL)
len = encode_application_null(&apdu[apdu_len]);
apdu_len = encode_application_null(&apdu[apdu_len]);
else {
present_value =
Binary_Value_Level[object_index][array_index];
len =
apdu_len =
encode_application_enumerated(&apdu[apdu_len],
present_value);
}
+2 -2
View File
@@ -352,9 +352,9 @@ int Binary_Output_Encode_Property_APDU(
present_value =
Binary_Output_Level[object_index][array_index - 1];
if (present_value == BINARY_NULL) {
len = encode_application_null(&apdu[apdu_len]);
apdu_len = encode_application_null(&apdu[apdu_len]);
} else {
len =
apdu_len =
encode_application_enumerated(&apdu[apdu_len],
present_value);
}