[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:
Abtin Keshavarzian
2018-12-22 08:39:39 -08:00
committed by Jonathan Hui
parent f2e3555a2a
commit 3108b6a615
+1
View File
@@ -499,6 +499,7 @@ void HdlcInterface::HandleHdlcFrame(otError aError)
}
else
{
mRxFrameBuffer.DiscardFrame();
otLogWarnPlat("Error decoding hdlc frame: %s", otThreadErrorToString(aError));
}
}