Fixed copy and compare API of BACnetObjectPropertyReference structure. (#1171)
This commit is contained in:
@@ -862,7 +862,8 @@ bool bacnet_object_property_reference_same(
|
||||
(value1->object_identifier.instance ==
|
||||
value2->object_identifier.instance) &&
|
||||
(value1->object_identifier.type ==
|
||||
value2->object_identifier.type)) {
|
||||
value2->object_identifier.type) &&
|
||||
(value1->property_array_index == value2->property_array_index)) {
|
||||
status = true;
|
||||
}
|
||||
}
|
||||
@@ -886,6 +887,7 @@ bool bacnet_object_property_reference_copy(
|
||||
dest->property_identifier = src->property_identifier;
|
||||
dest->object_identifier.instance = src->object_identifier.instance;
|
||||
dest->object_identifier.type = src->object_identifier.type;
|
||||
dest->property_array_index = src->property_array_index;
|
||||
status = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1432,13 +1432,12 @@ bool Loop_COV_Increment_Set(uint32_t object_instance, float value)
|
||||
int Loop_Read_Property(BACNET_READ_PROPERTY_DATA *rpdata)
|
||||
{
|
||||
int apdu_len = 0; /* return value */
|
||||
BACNET_BIT_STRING bit_string;
|
||||
BACNET_CHARACTER_STRING char_string;
|
||||
BACNET_UNSIGNED_INTEGER unsigned_value;
|
||||
BACNET_OBJECT_PROPERTY_REFERENCE reference_value;
|
||||
float real_value;
|
||||
BACNET_BIT_STRING bit_string = { 0 };
|
||||
BACNET_CHARACTER_STRING char_string = { 0 };
|
||||
BACNET_UNSIGNED_INTEGER unsigned_value = 0;
|
||||
BACNET_OBJECT_PROPERTY_REFERENCE reference_value = { 0 };
|
||||
float real_value = 0.0f;
|
||||
uint8_t *apdu = NULL;
|
||||
|
||||
uint32_t enum_value = 0;
|
||||
bool state = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user