Skip to content

Commit ab991be

Browse files
chengkai15xiaoxiang781216
authored andcommitted
serial/uart/h5: fix hci cmd error when splitting type and value
Signed-off-by: chengkai <[email protected]>
1 parent 4bfde88 commit ab991be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_bth5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ uart_bth5_write(FAR struct file *filep, FAR const char *buffer,
10791079
return ret;
10801080
}
10811081

1082-
data = dev->sendbuf + reserved + dev->sendlen;
1082+
data = dev->sendbuf + reserved;
10831083
if (dev->sendlen + buflen > CONFIG_UART_BTH5_TXBUFSIZE - reserved)
10841084
{
10851085
ret = -E2BIG;

0 commit comments

Comments
 (0)