mirror of https://github.com/ARMmbed/mbed-os.git
Codrio BLE: ignore packet if data allocation fails (#384)
parent
784417f65c
commit
92df6292cf
|
@ -245,7 +245,15 @@ void hciTrSerialRxIncoming(uint8_t *pBuf, uint8_t len)
|
|||
}
|
||||
else
|
||||
{
|
||||
/**
|
||||
* As above, simply employing WSF_ASSERT is not reasonable.
|
||||
* Instead, it is advisable to discard this data packet,
|
||||
* exit the packet processing function,
|
||||
* and adjust the stateRx back to HCI_RX_STATE_IDLE.
|
||||
*/
|
||||
stateRx = HCI_RX_STATE_IDLE;
|
||||
WSF_ASSERT(0); /* allocate falied */
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue