Fixed Device_Write_Property_Object_Name() to return WRITE_ACCESS_DENIED in case where an object name is not writable using BACnet protocol. (#927)

This commit is contained in:
Steve Karg
2025-02-26 17:00:51 -06:00
committed by GitHub
parent 2f5b45c542
commit 849cbb238b
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -205,8 +205,8 @@ static bool Device_Write_Property_Object_Name(
if (Device_Valid_Object_Name(&value, &object_type, &object_instance)) {
if ((object_type == wp_data->object_type) &&
(object_instance == wp_data->object_instance)) {
/* writing same name to same object */
status = true;
/* writing same name to same object - but is it writable? */
status = Object_Write_Property(wp_data);
} else {
/* name already exists in some object */
wp_data->error_class = ERROR_CLASS_PROPERTY;