Skip to content

Commit

Permalink
Add call to txStandBy()
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 committed Jun 17, 2024
1 parent 219d055 commit f77c5fe
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 @@ -1001,7 +1001,9 @@ bool ESBNetwork<radio_t>::write_to_pipe(uint16_t node, uint8_t pipe, bool multic
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 f77c5fe

Please sign in to comment.