From 212dca46da47e3134d262a425984ec958aa7082a Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 4 Dec 2018 16:13:15 +0000 Subject: [PATCH] The WritePropertyMultiple does not sends the priority. In the function wpmencodeapduobjectproperty located in wpm.c, the apdulen variable is not increased after calling encodecontextunsigned for the priority property. Bug #58. --- bacnet-stack/src/wpm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/src/wpm.c b/bacnet-stack/src/wpm.c index cc6cb5de..3919af08 100644 --- a/bacnet-stack/src/wpm.c +++ b/bacnet-stack/src/wpm.c @@ -248,7 +248,8 @@ int wpm_encode_apdu_object_property( } apdu_len += encode_closing_tag(&apdu[apdu_len], 2); if (wpdata->priority != BACNET_NO_PRIORITY) { - encode_context_unsigned(&apdu[apdu_len], 3, wpdata->priority); + apdu_len += + encode_context_unsigned(&apdu[apdu_len], 3, wpdata->priority); } }