mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user