mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
fix l2cap data sending - WiiMote now reports acceleration data
This commit is contained in:
parent
c8e4258af8
commit
dc32489f4e
@ -49,7 +49,7 @@ void event_handler(uint8_t *packet, uint16_t size){
|
||||
bd_addr_t addr;
|
||||
bt_flip_addr(addr, &packet[2]);
|
||||
uint16_t psm = READ_BT_16(packet, 10);
|
||||
uint16_t source_cid = READ_BT_16(packet, 8);
|
||||
uint16_t source_cid = READ_BT_16(packet, 12);
|
||||
printf("Channel successfully opened: ");
|
||||
print_bd_addr(addr);
|
||||
printf(", handle 0x%02x, psm 0x%02x, source cid 0x%02x, dest cid 0x%02x\n",
|
||||
|
@ -81,9 +81,8 @@ static int daemon_client_handler(connection_t *connection, uint16_t packet_type,
|
||||
btstack_command_handler(connection, data, length);
|
||||
}
|
||||
break;
|
||||
case HCI_ACL_DATA_PACKET:
|
||||
case L2CAP_DATA_PACKET:
|
||||
// process l2cap packet...
|
||||
channel = READ_BT_16(data, 0);
|
||||
l2cap_send_internal(channel, data, length);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user