Merge branch 'fix/openthread_rcp_uart_senddone_on_fail_v5.2' into 'release/v5.2'

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

See merge request espressif/esp-idf!49075
This commit is contained in:
Zhang Wen Xu
2026-06-05 07:49:10 +00:00

View File

@@ -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