diff --git a/tools/esp8266/hmRadio.h b/tools/esp8266/hmRadio.h index da4c78ee..721d00b0 100644 --- a/tools/esp8266/hmRadio.h +++ b/tools/esp8266/hmRadio.h @@ -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;