From 68b45f749bde87ce6acccdf4415b5578f199a6b2 Mon Sep 17 00:00:00 2001 From: Kevin Jhang Date: Mon, 8 Nov 2021 18:17:02 +0800 Subject: [PATCH] - fixed write element of array response type-inconsistent --- src/mms/iso_mms/common/mms_value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mms/iso_mms/common/mms_value.c b/src/mms/iso_mms/common/mms_value.c index 53d6563c..f38d84dd 100644 --- a/src/mms/iso_mms/common/mms_value.c +++ b/src/mms/iso_mms/common/mms_value.c @@ -232,7 +232,7 @@ bool MmsValue_update(MmsValue* self, const MmsValue* update) { if (self && update) { - if (self->type == update->type) { + if (self->type == update->type || (self->type == MMS_STRUCTURE && update->type == MMS_ARRAY)) { switch (self->type) { case MMS_STRUCTURE: