Fixed structured view object subtype get and set. (#909)

This commit is contained in:
Steve Karg
2025-02-10 09:56:52 -06:00
committed by GitHub
parent 66329a05a0
commit bc2438f85b
5 changed files with 162 additions and 4 deletions
+4 -4
View File
@@ -325,7 +325,7 @@ const char *Structured_View_Node_Subtype(uint32_t object_instance)
pObject = Keylist_Data(Object_List, object_instance);
if (pObject) {
if (pObject->Description) {
if (pObject->Node_Subtype) {
name = pObject->Node_Subtype;
} else {
name = "";
@@ -350,7 +350,7 @@ bool Structured_View_Node_Subtype_Set(
pObject = Keylist_Data(Object_List, object_instance);
if (pObject) {
status = true;
pObject->Description = new_name;
pObject->Node_Subtype = new_name;
}
return status;
@@ -469,8 +469,8 @@ bool Structured_View_Represents_Set(
pObject = Keylist_Data(Object_List, object_instance);
if (pObject) {
status = true;
pObject->Represents = *represents;
status = bacnet_device_object_reference_copy(
&pObject->Represents, represents);
}
return status;