corrected code after unit testing.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user