* flush rx every time

This commit is contained in:
lumapu 2022-08-10 12:00:45 +02:00
parent 155f9e3f41
commit 31a09dbaf9

View file

@ -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;