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

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

See merge request espressif/esp-idf!49073
This commit is contained in:
Zhang Wen Xu
2026-06-01 09:44:57 +00:00
@@ -60,12 +60,10 @@ otError otPlatUartSend(const uint8_t *buf, uint16_t buf_length)
usb_serial_jtag_ll_txfifo_flush();
#endif
otPlatUartSendDone();
if (rval != (int)buf_length) {
return OT_ERROR_FAILED;
}
otPlatUartSendDone();
return OT_ERROR_NONE;
}
#endif