fix compile errors

This commit is contained in:
cneilson
2012-09-12 08:39:36 +00:00
parent 6386dc8cd8
commit 77ad8cf6f4
3 changed files with 6 additions and 14 deletions
+2 -2
View File
@@ -1134,8 +1134,8 @@ void PrintHeading(
* and show them
*/
if ((value != NULL) && (value->tag == BACNET_APPLICATION_TAG_BIT_STRING)) {
printf("-- services reported by this device\r\n");
int i, len = bitstring_bits_used(&value->type.Bit_String);
printf("-- services reported by this device\r\n");
for (i = 0; i < len; i++) {
if (bitstring_bit(&value->type.Bit_String, (uint8_t) i))
printf(" %s\r\n", protocol_services_supported_text(i));
@@ -1181,8 +1181,8 @@ void PrintHeading(
* and show them
*/
if ((value != NULL) && (value->tag == BACNET_APPLICATION_TAG_BIT_STRING)) {
printf("-- objects reported by this device\r\n");
int i, len = bitstring_bits_used(&value->type.Bit_String);
printf("-- objects reported by this device\r\n");
for (i = 0; i < len; i++) {
if (bitstring_bit(&value->type.Bit_String, (uint8_t) i))
printf(" %s\r\n", bactext_object_type_name(i));
+4
View File
@@ -194,6 +194,7 @@ static object_functions_t My_Object_Table[] = {
NULL /* COV */ ,
NULL /* COV Clear */ ,
NULL /* Intrinsic Reporting */ },
#if 0
{OBJECT_CHARACTERSTRING_VALUE,
CharacterString_Value_Init,
CharacterString_Value_Count,
@@ -209,6 +210,7 @@ static object_functions_t My_Object_Table[] = {
NULL /* COV */ ,
NULL /* COV Clear */ ,
NULL /* Intrinsic Reporting */ },
#endif
#if defined(INTRINSIC_REPORTING)
{OBJECT_NOTIFICATION_CLASS,
Notification_Class_Init,
@@ -286,6 +288,7 @@ static object_functions_t My_Object_Table[] = {
NULL /* COV */ ,
NULL /* COV Clear */ ,
NULL /* Intrinsic Reporting */ },
#if 0
{OBJECT_MULTI_STATE_VALUE,
Multistate_Value_Init,
Multistate_Value_Count,
@@ -301,6 +304,7 @@ static object_functions_t My_Object_Table[] = {
NULL /* COV */ ,
NULL /* COV Clear */ ,
NULL /* Intrinsic Reporting */ },
#endif
{OBJECT_TRENDLOG,
Trend_Log_Init,
Trend_Log_Count,
@@ -246,18 +246,6 @@
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\..\..\demo\object\gw_device.c"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\..\include"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\..\..\demo\object\lc.c"
>