mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-11 17:52:00 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user