You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/17 10:09:39 UTC
(nuttx) 01/27: serial/uart/h5: fix hci cmd error when splitting type and value
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ab991be178062a55000aef20d1ad232612939354
Author: chengkai <ch...@xiaomi.com>
AuthorDate: Wed Oct 18 14:40:54 2023 +0800
serial/uart/h5: fix hci cmd error when splitting type and value
Signed-off-by: chengkai <ch...@xiaomi.com>
---
drivers/serial/uart_bth5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/serial/uart_bth5.c b/drivers/serial/uart_bth5.c
index 21a528b8c2..1b7385edce 100644
--- a/drivers/serial/uart_bth5.c
+++ b/drivers/serial/uart_bth5.c
@@ -1079,7 +1079,7 @@ uart_bth5_write(FAR struct file *filep, FAR const char *buffer,
return ret;
}
- data = dev->sendbuf + reserved + dev->sendlen;
+ data = dev->sendbuf + reserved;
if (dev->sendlen + buflen > CONFIG_UART_BTH5_TXBUFSIZE - reserved)
{
ret = -E2BIG;