Skip to content

Commit 302bb30

Browse files
committed
Allow immediate transmit after receive again.
1 parent 4688e2e commit 302bb30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rf12base.h

+4
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ template <class RFM_IRQ, class SelectPin> class _RF12Base
264264
_rxstate = TXIDLE;
265265
if (_buf[LENGTH] > RF12_MAXDATA)
266266
_crc = 1; // force bad crc if packet length is invalid
267+
// Allow an immediate transmit
268+
_lastSend = Clock16::millis() - MIN_SEND_INTERVAL - 1;
267269
return true;
268270
}
269271
enableReceive();
@@ -282,6 +284,8 @@ template <class RFM_IRQ, class SelectPin> class _RF12Base
282284
_rxstate = TXIDLE;
283285
if (_buf[LENGTH] > RF12_MAXDATA)
284286
_crc = 1; // force bad crc if packet length is invalid
287+
// Allow an immediate transmit
288+
_lastSend = Clock16::millis() - MIN_SEND_INTERVAL - 1;
285289
return true;
286290
}
287291
return false;

0 commit comments

Comments
 (0)