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