Skip to content

Commit

Permalink
Add call to txStandBy() (#229)
Browse files Browse the repository at this point in the history
- If a write fails while auto-ack is enabled using `writeFast()` there is a need to call txStandBy() or subsequent writes will fail. It also allows extra time for the current write to succeed.
  • Loading branch information
TMRh20 authored and 2bndy5 committed Jun 17, 2024
1 parent 5a71a66 commit 7f29c70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ bool RF24Network::write_to_pipe(uint16_t node, uint8_t pipe, bool multicast)
ok = radio.txStandBy(txTimeout);
radio.setAutoAck(0, 0);
}

else if (!ok) {
ok = radio.txStandBy(txTimeout);
}
/*
#if defined (__arm__) || defined (RF24_LINUX)
IF_RF24NETWORK_DEBUG(printf_P(PSTR("%u: MAC Sent on %x %s\n\r"), millis(), (uint32_t)out_pipe, ok ? PSTR("ok") : PSTR("failed")));
Expand Down

0 comments on commit 7f29c70

Please sign in to comment.