fix compile

This commit is contained in:
matthias.ringwald 2014-06-13 08:54:20 +00:00
parent 67be2318fb
commit 50111094b9

View File

@ -86,6 +86,10 @@ static timer_source_t att_handle_value_indication_timer;
static btstack_packet_handler_t att_client_packet_handler = NULL;
// should that go into l2cap[_le].c? Should it actually use the handle?
static uint16_t l2cap_max_mtu_for_handle(uint16_t handle){
return l2cap_max_mtu();
}
static void att_handle_value_indication_notify_client(uint8_t status, uint16_t client_handle, uint16_t attribute_handle){
uint8_t event[7];
@ -124,7 +128,7 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin
bt_flip_addr(att_client_address, &packet[8]);
// reset connection properties
att_connection.con_handle = READ_BT_16(packet, 4);
att_connection.mtu = l2cap_max_mtu_for_handle(peripheral->handle);;
att_connection.mtu = l2cap_max_mtu_for_handle(att_connection.con_handle);
att_connection.encryption_key_size = 0;
att_connection.authenticated = 0;
att_connection.authorized = 0;