maniacbug / RF24Network

Network Layer for nRF24L01(+) Radios
http://maniacbug.github.com/RF24Network
272 stars 129 forks source link

Bug when adding node to nodelist in meshping.pde #11

Open ve2yag opened 11 years ago

ve2yag commented 11 years ago

I check your code and see this:

// If this message is from ourselves or the base, don't bother adding it to the active nodes. if ( header.from_node != this_node || header.from_node > 00 ) add_node(header.from_node); }

I think this is correct line, because the node add himself to list anyway (because >0)

// If this message is from ourselves or the base, don't bother adding it to the active nodes. if ( header.from_node != this_node && header.from_node != 00 ) add_node(header.from_node); }

If node != itself AND node != 0 then addnodetolist.