Corrected present_value priority array offset for binary output examples.

This commit is contained in:
skarg
2009-07-20 22:15:08 +00:00
parent 295977c606
commit 82a03d948b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -285,12 +285,12 @@ int Binary_Output_Encode_Property_APDU(
object_index =
Binary_Output_Instance_To_Index(object_instance);
if (array_index <= BACNET_MAX_PRIORITY) {
if (Binary_Output_Level[object_index][array_index] ==
if (Binary_Output_Level[object_index][array_index-1] ==
BINARY_NULL)
len = encode_application_null(&apdu[apdu_len]);
else {
present_value =
Binary_Output_Level[object_index][array_index];
Binary_Output_Level[object_index][array_index-1];
len =
encode_application_enumerated(&apdu[apdu_len],
present_value);
+1 -1
View File
@@ -351,7 +351,7 @@ int Binary_Output_Encode_Property_APDU(
Binary_Output_Instance_To_Index(object_instance);
if (array_index <= BACNET_MAX_PRIORITY) {
present_value =
Binary_Output_Level[object_index][array_index];
Binary_Output_Level[object_index][array_index-1];
if (present_value == BINARY_NULL) {
len = encode_application_null(&apdu[apdu_len]);
} else {