To build the Routing demo define BAC_ROUTING in the top Makefile. The value is not important - the symbol has to be defined.
This commit is contained in:
@@ -353,7 +353,7 @@ uint32_t Device_Index_To_Instance(
|
||||
uint32_t Device_Object_Instance_Number(
|
||||
void)
|
||||
{
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
return Routed_Device_Object_Instance_Number();
|
||||
#else
|
||||
return Object_Instance_Number;
|
||||
@@ -1380,7 +1380,7 @@ bool DeviceGetRRInfo(
|
||||
}
|
||||
|
||||
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
/****************************************************************************
|
||||
************* BACnet Routing Functionality (Optional) **********************
|
||||
****************************************************************************
|
||||
|
||||
@@ -78,7 +78,7 @@ bool Routed_Device_Write_Property_Local(
|
||||
BACNET_WRITE_PROPERTY_DATA * wp_data);
|
||||
|
||||
|
||||
#if !BAC_ROUTING
|
||||
#if !defined(BAC_ROUTING)
|
||||
#warning This file should not be included in the build unless BAC_ROUTING is enabled.
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user