diff --git a/RPi/RF24Network/RF24Network.cpp b/RPi/RF24Network/RF24Network.cpp index 521b4e02..d1b601e3 100644 --- a/RPi/RF24Network/RF24Network.cpp +++ b/RPi/RF24Network/RF24Network.cpp @@ -133,10 +133,6 @@ uint8_t RF24Network::update(void) { // Is this for us? if ( header.to_node == node_address ) { - if ( header.type == NETWORK_ADDR_LOOKUP || header.type == NETWORK_ACK || (header.type == NETWORK_REQ_ADDRESS && !node_address) || header.type == NETWORK_ADDR_CONFIRM ) { - IF_SERIAL_DEBUG_ROUTING(printf_P(PSTR("RT: System payload rcvd %d\n"),header.type);); - return header.type; - } if(header.type == NETWORK_PING){ returnVal = NETWORK_PING; continue; @@ -164,6 +160,10 @@ uint8_t RF24Network::update(void) { continue; } + if(header.type>127){ + IF_SERIAL_DEBUG_ROUTING(printf_P(PSTR("RT: System payload rcvd %d\n"),header.type);); + return header.type; + } enqueue(frame); if (radio.rxFifoFull()) { diff --git a/RPi/RF24Network/RF24Network.h b/RPi/RF24Network/RF24Network.h index 93f3a7b9..2896a4f6 100644 --- a/RPi/RF24Network/RF24Network.h +++ b/RPi/RF24Network/RF24Network.h @@ -69,6 +69,7 @@ #define NETWORK_POLL 194 #define NETWORK_REQ_ADDRESS 195 #define NETWORK_ADDR_LOOKUP 196 +#define NETWORK_ADDR_RELEASE 197 /*System-Sub Types (0-255)*/ //#define NETWORK_REQ_STREAM 11;