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:
@@ -47,7 +47,7 @@
|
||||
|
||||
/* Enable the Gateway (Routing) functionality here, if desired. */
|
||||
#if !defined(MAX_NUM_DEVICES)
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
#define MAX_NUM_DEVICES 3 /* Eg, Gateway + two remote devices */
|
||||
#else
|
||||
#define MAX_NUM_DEVICES 1 /* Just the one normal BACnet Device Object */
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
#endif
|
||||
#define datalink_cleanup bip_cleanup
|
||||
#define datalink_get_broadcast_address bip_get_broadcast_address
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
#define datalink_get_my_address routed_get_my_address
|
||||
#else
|
||||
#define datalink_get_my_address bip_get_my_address
|
||||
|
||||
Reference in New Issue
Block a user