Browse Source

* flush rx every time

pull/107/head^2
lumapu 3 years ago
parent
commit
31a09dbaf9
  1. 7
      tools/esp8266/hmRadio.h

7
tools/esp8266/hmRadio.h

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

Loading…
Cancel
Save