We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 784417f commit 92df629Copy full SHA for 92df629
connectivity/FEATURE_BLE/source/cordio/stack_adaptation/hci_tr.c
@@ -245,7 +245,15 @@ void hciTrSerialRxIncoming(uint8_t *pBuf, uint8_t len)
245
}
246
else
247
{
248
+ /**
249
+ * As above, simply employing WSF_ASSERT is not reasonable.
250
+ * Instead, it is advisable to discard this data packet,
251
+ * exit the packet processing function,
252
+ * and adjust the stateRx back to HCI_RX_STATE_IDLE.
253
+ */
254
+ stateRx = HCI_RX_STATE_IDLE;
255
WSF_ASSERT(0); /* allocate falied */
256
+ return;
257
258
259
0 commit comments