mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
bluetooth: fix ascan report error
wireless/bluetooth/bt_uart_filter.c:238:26: runtime error: left shift of negative value -3 Change-Id: Ibd34af7e37b4b16a6168d67460573fc47df35935 Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
d82e263654
commit
93604983eb
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ bool bt_uart_filter_forward_send(FAR struct bt_uart_filter_s *filter,
|
|||
|
||||
if (buffer[0] == H4_CMD)
|
||||
{
|
||||
opcode = buffer[2] << 8 | buffer[1];
|
||||
opcode = (uint16_t)buffer[2] << 8 | (uint16_t)buffer[1];
|
||||
|
||||
switch (opcode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue