Skip to content

Commit

Permalink
adds delay to avoid clashes on multicastRelay
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Jan 27, 2018
1 parent 4f4b239 commit 394286d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ uint8_t RF24Network::update(void)

if(multicastRelay){
IF_SERIAL_DEBUG_ROUTING( printf_P(PSTR("%u MAC: FWD multicast frame from 0%o to level %u\n"),millis(),header->from_node,multicast_level+1); );
if ((node_address >> 3) != 0) {
// for all but the first level of nodes, those not directly connected to the master, we add the total delay per level
delayMicroseconds(700*4);
}
delayMicroseconds((node_address % 4)*700);
write(levelToAddress(multicast_level)<<3,4);
}
if( val == 2 ){ //External data received
Expand Down

0 comments on commit 394286d

Please sign in to comment.