mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(openthread): avoid HDLC TX stall on fd write failure
This commit is contained in:
@@ -60,12 +60,10 @@ otError otPlatUartSend(const uint8_t *buf, uint16_t buf_length)
|
|||||||
usb_serial_jtag_ll_txfifo_flush();
|
usb_serial_jtag_ll_txfifo_flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
otPlatUartSendDone();
|
||||||
if (rval != (int)buf_length) {
|
if (rval != (int)buf_length) {
|
||||||
return OT_ERROR_FAILED;
|
return OT_ERROR_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
otPlatUartSendDone();
|
|
||||||
|
|
||||||
return OT_ERROR_NONE;
|
return OT_ERROR_NONE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user