Skip to content

Commit 3b9cf94

Browse files
committed
wait before checking if we are receiving.
Without waiting, most of the times the arduino would start sending while there was still messages in the air. It seems that it had no time to enter the STATUS_RECORDING_1 state for the second received message.
1 parent ca566d8 commit 3b9cf94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RFControl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ void listenBeforeTalk()
478478
// listen before talk
479479
unsigned long waited = 0;
480480
if(interruptPin != -1) {
481+
waited += 500;
482+
hw_delayMicroseconds(500);
481483
while(state > STATUS_RECORDING_0 && state != STATUS_RECORDING_END) {
482484
//wait till no rf message is in the air
483485
waited += 5;

0 commit comments

Comments
 (0)