Skip to content

Commit decd8ce

Browse files
authored
Add call to txStandBy() (#229)
- 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.
1 parent 219d055 commit decd8ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RF24Network.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,9 @@ bool ESBNetwork<radio_t>::write_to_pipe(uint16_t node, uint8_t pipe, bool multic
10011001
ok = radio.txStandBy(txTimeout);
10021002
radio.setAutoAck(0, 0);
10031003
}
1004-
1004+
else if (!ok) {
1005+
ok = radio.txStandBy(txTimeout);
1006+
}
10051007
/*
10061008
#if defined (__arm__) || defined (RF24_LINUX)
10071009
IF_RF24NETWORK_DEBUG(printf_P(PSTR("%u: MAC Sent on %x %s\n\r"), millis(), (uint32_t)out_pipe, ok ? PSTR("ok") : PSTR("failed")));

0 commit comments

Comments
 (0)