Corrected context decoding bug in ReadPropertyMultiple client. Corrected ReadPropertyMultiple handling of objects that aren't supported. Added the context to application tags for the Load Control object.

This commit is contained in:
skarg
2009-02-21 19:12:31 +00:00
parent c23b6c2742
commit d45d566c94
4 changed files with 58 additions and 20 deletions
+1 -6
View File
@@ -713,6 +713,7 @@ int Load_Control_Encode_Property_APDU(
object_instance);
break;
case PROP_OBJECT_NAME:
case PROP_DESCRIPTION:
characterstring_init_ansi(&char_string,
Load_Control_Name(object_instance));
apdu_len =
@@ -722,12 +723,6 @@ int Load_Control_Encode_Property_APDU(
apdu_len =
encode_application_enumerated(&apdu[0], OBJECT_LOAD_CONTROL);
break;
/* optional property
case PROP_DESCRIPTION:
characterstring_init_ansi(&char_string,"optional description");
apdu_len = encode_application_character_string(&apdu[0], &char_string);
break;
*/
case PROP_PRESENT_VALUE:
enumeration = Load_Control_Present_Value(object_instance);
apdu_len = encode_application_enumerated(&apdu[0], enumeration);