From dc8b5d61cbb6fee5387f052b3aefa595c79eade5 Mon Sep 17 00:00:00 2001 From: Xu Si Yu Date: Wed, 27 May 2026 18:39:59 +0800 Subject: [PATCH] fix(openthread): avoid HDLC TX stall on fd write failure --- components/openthread/src/port/esp_openthread_uart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/openthread/src/port/esp_openthread_uart.c b/components/openthread/src/port/esp_openthread_uart.c index 685e2ee5586..26c9ed13de6 100644 --- a/components/openthread/src/port/esp_openthread_uart.c +++ b/components/openthread/src/port/esp_openthread_uart.c @@ -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