mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 18:07:47 +00:00
[efr32] Radio: use RAIL_CopyRxPacket (#4484)
This commit is contained in:
committed by
Jonathan Hui
parent
59b3c51184
commit
f816635465
@@ -805,9 +805,7 @@ static void processNextRxPacket(otInstance *aInstance)
|
||||
packetInfo.packetBytes--;
|
||||
|
||||
// read packet
|
||||
memcpy(sReceiveFrame.mPsdu, packetInfo.firstPortionData, packetInfo.firstPortionBytes);
|
||||
memcpy(sReceiveFrame.mPsdu + packetInfo.firstPortionBytes, packetInfo.lastPortionData,
|
||||
packetInfo.packetBytes - packetInfo.firstPortionBytes);
|
||||
RAIL_CopyRxPacket(sReceiveFrame.mPsdu, &packetInfo);
|
||||
|
||||
status = RAIL_ReleaseRxPacket(gRailHandle, packetHandle);
|
||||
if (status == RAIL_STATUS_NO_ERROR)
|
||||
|
||||
Reference in New Issue
Block a user