Corrected Binary output and value in some demos that didn't return the priority array element correctly.
This commit is contained in:
@@ -287,11 +287,11 @@ int Binary_Output_Encode_Property_APDU(
|
|||||||
if (array_index <= BACNET_MAX_PRIORITY) {
|
if (array_index <= BACNET_MAX_PRIORITY) {
|
||||||
if (Binary_Output_Level[object_index][array_index - 1] ==
|
if (Binary_Output_Level[object_index][array_index - 1] ==
|
||||||
BINARY_NULL)
|
BINARY_NULL)
|
||||||
len = encode_application_null(&apdu[apdu_len]);
|
apdu_len = encode_application_null(&apdu[apdu_len]);
|
||||||
else {
|
else {
|
||||||
present_value =
|
present_value =
|
||||||
Binary_Output_Level[object_index][array_index - 1];
|
Binary_Output_Level[object_index][array_index - 1];
|
||||||
len =
|
apdu_len =
|
||||||
encode_application_enumerated(&apdu[apdu_len],
|
encode_application_enumerated(&apdu[apdu_len],
|
||||||
present_value);
|
present_value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -278,11 +278,11 @@ int Binary_Value_Encode_Property_APDU(
|
|||||||
if (array_index <= BACNET_MAX_PRIORITY) {
|
if (array_index <= BACNET_MAX_PRIORITY) {
|
||||||
if (Binary_Value_Level[object_index][array_index] ==
|
if (Binary_Value_Level[object_index][array_index] ==
|
||||||
BINARY_NULL)
|
BINARY_NULL)
|
||||||
len = encode_application_null(&apdu[apdu_len]);
|
apdu_len = encode_application_null(&apdu[apdu_len]);
|
||||||
else {
|
else {
|
||||||
present_value =
|
present_value =
|
||||||
Binary_Value_Level[object_index][array_index];
|
Binary_Value_Level[object_index][array_index];
|
||||||
len =
|
apdu_len =
|
||||||
encode_application_enumerated(&apdu[apdu_len],
|
encode_application_enumerated(&apdu[apdu_len],
|
||||||
present_value);
|
present_value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -352,9 +352,9 @@ int Binary_Output_Encode_Property_APDU(
|
|||||||
present_value =
|
present_value =
|
||||||
Binary_Output_Level[object_index][array_index - 1];
|
Binary_Output_Level[object_index][array_index - 1];
|
||||||
if (present_value == BINARY_NULL) {
|
if (present_value == BINARY_NULL) {
|
||||||
len = encode_application_null(&apdu[apdu_len]);
|
apdu_len = encode_application_null(&apdu[apdu_len]);
|
||||||
} else {
|
} else {
|
||||||
len =
|
apdu_len =
|
||||||
encode_application_enumerated(&apdu[apdu_len],
|
encode_application_enumerated(&apdu[apdu_len],
|
||||||
present_value);
|
present_value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user