Removed option property from required property list.

This commit is contained in:
skarg
2018-08-30 01:11:26 +00:00
parent a37acdb319
commit 14a2bf696a
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -320,7 +320,6 @@ int Analog_Output_Read_Property(
rpdata->object_instance);
break;
case PROP_OBJECT_NAME:
case PROP_DESCRIPTION:
Analog_Output_Object_Name(rpdata->object_instance, &char_string);
apdu_len =
encode_application_character_string(&apdu[0], &char_string);
@@ -501,7 +500,6 @@ bool Analog_Output_Write_Property(
case PROP_UNITS:
case PROP_PRIORITY_ARRAY:
case PROP_RELINQUISH_DEFAULT:
case PROP_DESCRIPTION:
wp_data->error_class = ERROR_CLASS_PROPERTY;
wp_data->error_code = ERROR_CODE_WRITE_ACCESS_DENIED;
break;
@@ -538,7 +536,7 @@ bool WPValidateArgType(
*pErrorClass = ERROR_CLASS_PROPERTY;
*pErrorCode = ERROR_CODE_INVALID_DATA_TYPE;
}
return (bResult);
}
+1
View File
@@ -63,6 +63,7 @@ static const int Properties_Required[] = {
static const int Properties_Optional[] = {
PROP_EVENT_STATE,
PROP_OUT_OF_SERVICE,
PROP_DESCRIPTION,
-1
};