fix(openthread): avoid HDLC TX stall on fd write failure

This commit is contained in:
Xu Si Yu
2026-06-05 03:50:04 +00:00
committed by Zhang Wen Xu
parent f3dac0b82d
commit a9ad6f4d7c
@@ -50,12 +50,10 @@ otError otPlatUartSend(const uint8_t *buf, uint16_t buf_length)
{
int rval = write(s_uart_fd, buf, buf_length);
otPlatUartSendDone();
if (rval != (int)buf_length) {
return OT_ERROR_FAILED;
}
otPlatUartSendDone();
return OT_ERROR_NONE;
}
#endif