Converted comments to C style using convert.sh script.

This commit is contained in:
skarg
2011-07-09 17:23:41 +00:00
parent b976577684
commit 51c6134e15
5 changed files with 50 additions and 50 deletions
+7 -7
View File
@@ -44,7 +44,7 @@ int wpm_decode_object_id(uint8_t * apdu, uint16_t apdu_len,
if((apdu )&& (apdu_len))
{
// Context tag 0 - Object ID
/* Context tag 0 - Object ID
*/
len += decode_tag_number_and_value(&apdu[len], &tag_number, &len_value);
if(tag_number == 0)
@@ -78,7 +78,7 @@ int wpm_decode_object_property(uint8_t * apdu,
wp_data->array_index = BACNET_ARRAY_ALL;
wp_data->priority = BACNET_NO_PRIORITY;
wp_data->application_data_len = 0;
// tag 0 - Property Identifier
/* tag 0 - Property Identifier
*/
len += decode_tag_number_and_value(&apdu[len], &tag_number, &len_value);
@@ -88,7 +88,7 @@ int wpm_decode_object_property(uint8_t * apdu,
wp_data->object_property = ulVal;
}
else
// tag 1 - Property Array Index - optional
return -1;
/* tag 1 - Property Array Index - optional
*/
@@ -97,7 +97,7 @@ int wpm_decode_object_property(uint8_t * apdu,
{
len += decode_unsigned(&apdu[len],len_value, &ulVal);
wp_data->array_index = ulVal;
// tag 2 - Property Value
len += decode_tag_number_and_value(&apdu[len], &tag_number, &len_value);
}
/* tag 2 - Property Value
@@ -105,20 +105,20 @@ int wpm_decode_object_property(uint8_t * apdu,
if((tag_number == 2) && (decode_is_opening_tag(&apdu[len-1])))
{
len--;
// copy application data
wp_data->application_data_len = bacapp_data_len(&apdu[len],
apdu_len - len, wp_data->object_property);
len++;
/* copy application data
*/
// closing tag 2
for(i = 0; i < wp_data->application_data_len; i++)
wp_data->application_data[i] = apdu[len+i];
len += wp_data->application_data_len;
len += decode_tag_number_and_value(&apdu[len], &tag_number, &len_value);
/* closing tag 2
*/
// tag 3 - Priority - optional
if((tag_number != 2) &&(decode_is_closing_tag(&apdu[len-1])))
return -1;
}
else