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:
@@ -65,7 +65,7 @@ void handler_who_has(
|
||||
if (len > 0) {
|
||||
if ((data.low_limit == -1) || (data.high_limit == -1))
|
||||
directed_to_me = true;
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
else if ((Routed_Device_Object_Instance_Number() >= (uint32_t) data.low_limit)
|
||||
&& (Routed_Device_Object_Instance_Number() <= (uint32_t) data.high_limit))
|
||||
#else
|
||||
|
||||
@@ -63,7 +63,7 @@ void handler_who_is(
|
||||
Send_I_Am(&Handler_Transmit_Buffer[0]);
|
||||
else if (len != -1) {
|
||||
/* is my device id within the limits? */
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
if (((Routed_Device_Object_Instance_Number() >= (uint32_t) low_limit) &&
|
||||
(Routed_Device_Object_Instance_Number() <= (uint32_t) high_limit))
|
||||
||
|
||||
@@ -107,7 +107,7 @@ void handler_who_is_unicast(
|
||||
Send_I_Am_Unicast(&Handler_Transmit_Buffer[0], src);
|
||||
else if (len != -1) {
|
||||
/* is my device id within the limits? */
|
||||
#if BAC_ROUTING
|
||||
#ifdef BAC_ROUTING
|
||||
if (((Routed_Device_Object_Instance_Number() >= (uint32_t) low_limit) &&
|
||||
(Routed_Device_Object_Instance_Number() <= (uint32_t) high_limit))
|
||||
||
|
||||
|
||||
Reference in New Issue
Block a user