Skip to content

Commit

Permalink
Forgot to add addr release for RPi
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Oct 10, 2014
1 parent 9bb97f4 commit 4a66840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RPi/RF24Network/RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down
1 change: 1 addition & 0 deletions RPi/RF24Network/RF24Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a66840

Please sign in to comment.