* 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); mNrf24.read(p->packet, len);
mBufCtrl->pushFront(p); mBufCtrl->pushFront(p);
}
else {
mNrf24.flush_rx(); // drop the packet
break;
}
yield(); yield();
} }
else
break;
}
mNrf24.flush_rx(); // drop the packet
} }
else else
RESTORE_IRQ; RESTORE_IRQ;