Skip to content

Commit

Permalink
Adjustment for last change
Browse files Browse the repository at this point in the history
- Only call startListening() and setAutoAck if fast_frag
  • Loading branch information
TMRh20 committed Dec 14, 2015
1 parent 7e2768d commit 950c94e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,10 @@ bool RF24Network::write(RF24NetworkHeader& header,const void* message, uint16_t
header.type = type;
#if !defined (DUAL_HEAD_RADIO)
if(networkFlags & FLAG_FAST_FRAG){
ok = radio.txStandBy(txTimeout);
}
radio.startListening();
radio.setAutoAck(0,0);
ok = radio.txStandBy(txTimeout);
radio.startListening();
radio.setAutoAck(0,0);
}
if(!ok){
return false;
}
Expand Down

0 comments on commit 950c94e

Please sign in to comment.