fix BACnet Array size encoding (#437)

* fix BACnet Array size encoding

* test BACnet Array size encoding

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-06-14 17:13:52 -05:00
committed by GitHub
parent 6e5524bee3
commit 2c771414bd
2 changed files with 65 additions and 2 deletions
+1 -1
View File
@@ -3116,7 +3116,7 @@ int bacnet_array_encode(uint32_t object_instance,
if (len > max_apdu) {
apdu_len = BACNET_STATUS_ABORT;
} else {
len = encode_application_unsigned(NULL, array_size);
len = encode_application_unsigned(apdu, array_size);
apdu_len = len;
}
} else if (array_index == BACNET_ARRAY_ALL) {