mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
[posix-app] discard received HDLC frame on error (#3394)
This commit changes the `HdlcInterface::HandleHdlcFrame()` callback which handles a received and decoded HDLC frame such that it discards a bad/incorrect frame from the multi frame buffer (i.e, discard the frame on any error).
This commit is contained in:
committed by
Jonathan Hui
parent
f2e3555a2a
commit
3108b6a615
@@ -499,6 +499,7 @@ void HdlcInterface::HandleHdlcFrame(otError aError)
|
||||
}
|
||||
else
|
||||
{
|
||||
mRxFrameBuffer.DiscardFrame();
|
||||
otLogWarnPlat("Error decoding hdlc frame: %s", otThreadErrorToString(aError));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user