Fix BACnetARRAY encoder for index=ALL (#442)

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-06-30 15:39:15 -05:00
committed by GitHub
parent 5b7eac60cf
commit a9c2474534
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -3129,7 +3129,7 @@ int bacnet_array_encode(uint32_t object_instance,
/* encoded size is larger than APDU size */
apdu_len = BACNET_STATUS_ABORT;
} else {
for (index = 1; index < array_size; index++) {
for (index = 0; index < array_size; index++) {
len = encoder(object_instance, index, apdu);
if (apdu) {
apdu += len;