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 <[email protected]>
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 <[email protected]>
---
 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;

Reply via email to