fix l2cap data sending - WiiMote now reports acceleration data

This commit is contained in:
matthias.ringwald 2009-08-02 13:32:55 +00:00
parent c8e4258af8
commit dc32489f4e
2 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -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;
}