mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 23:46:37 +02:00
* flush rx every time
This commit is contained in:
parent
155f9e3f41
commit
31a09dbaf9
1 changed files with 3 additions and 4 deletions
|
@ -135,13 +135,12 @@ class HmRadio {
|
|||
|
||||
mNrf24.read(p->packet, len);
|
||||
mBufCtrl->pushFront(p);
|
||||
yield();
|
||||
}
|
||||
else {
|
||||
mNrf24.flush_rx(); // drop the packet
|
||||
else
|
||||
break;
|
||||
}
|
||||
yield();
|
||||
}
|
||||
mNrf24.flush_rx(); // drop the packet
|
||||
}
|
||||
else
|
||||
RESTORE_IRQ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue