From f0a28e494b59a0358f4f7b56eac1d75aea6b2b1b Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 23 May 2005 11:03:14 +0000 Subject: [PATCH] corrected code after unit testing. --- bacnet-stack/wp.c | 2 +- bacnet-stack/wp.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bacnet-stack/wp.c b/bacnet-stack/wp.c index 2de36c23..ffba2772 100644 --- a/bacnet-stack/wp.c +++ b/bacnet-stack/wp.c @@ -217,7 +217,7 @@ int wp_decode_service_request( else if (tag_number == BACNET_APPLICATION_TAG_OBJECT_ID) { data->value.tag = tag_number; - len += decode_object_id(&apdu[tag_len], + len += decode_object_id(&apdu[len], &object_type, &instance); data->value.type.Object_ID.type = object_type; diff --git a/bacnet-stack/wp.h b/bacnet-stack/wp.h index 799ff0c5..89756b71 100644 --- a/bacnet-stack/wp.h +++ b/bacnet-stack/wp.h @@ -62,7 +62,6 @@ typedef struct BACnet_Write_Property_Value uint16_t type; uint32_t instance; } Object_ID; - uint32_t Object_Identifier; } type; } BACNET_WRITE_PROPERTY_VALUE;