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

This commit is contained in:
Xu Si Yu
2026-05-27 18:39:59 +08:00
parent a937c368b4
commit dc8b5d61cb

View File

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