Skip to content

Commit

Permalink
Fix for last change
Browse files Browse the repository at this point in the history
- FAST_FRAG flag was not being unset if failed
- Auto-ack was not being disabled for fragmented routed payloads
  • Loading branch information
TMRh20 committed Dec 15, 2015
1 parent 950c94e commit 5f1cf94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,12 +771,13 @@ bool RF24Network::write(RF24NetworkHeader& header,const void* message, uint16_t
ok = radio.txStandBy(txTimeout);
radio.startListening();
radio.setAutoAck(0,0);
}
}
networkFlags &= ~FLAG_FAST_FRAG;

if(!ok){
return false;
}
#endif
networkFlags &= ~FLAG_FAST_FRAG
//int frag_delay = uint8_t(len/48);
//delay( rf24_min(len/48,20));

Expand Down Expand Up @@ -916,6 +917,7 @@ bool RF24Network::write(uint16_t to_node, uint8_t directTo) // Direct To: 0 = F
if(networkFlags & FLAG_FAST_FRAG){
radio.txStandBy(txTimeout);
networkFlags &= ~FLAG_FAST_FRAG;
radio.setAutoAck(0,0);
}
radio.startListening();
#endif
Expand Down

0 comments on commit 5f1cf94

Please sign in to comment.