Adjusted Device Object type decoding to use uint16_t rather than int. Corrected unit tests.

This commit is contained in:
skarg
2008-10-22 02:19:03 +00:00
parent 63ca977553
commit 35236bea22
15 changed files with 74 additions and 40 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ int bacapp_encode_application_data(
return apdu_len;
}
/* decode the data and store it into value.
/* decode the data and store it into value.
Return the number of octets consumed. */
int bacapp_decode_data(
uint8_t * apdu,
@@ -236,7 +236,7 @@ int bacapp_decode_data(
#if defined (BACAPP_OBJECT_ID)
case BACNET_APPLICATION_TAG_OBJECT_ID:
{
int object_type = 0;
uint16_t object_type = 0;
uint32_t instance = 0;
len = decode_object_id(&apdu[0], &object_type, &instance);
value->type.Object_Id.type = object_type;