fix compile

This commit is contained in:
matthias.ringwald@gmail.com 2014-08-14 21:31:36 +00:00
parent e5e1518d8a
commit 219eea5f01
2 changed files with 3 additions and 3 deletions

View File

@ -764,7 +764,7 @@ static void gatt_client_att_packet_handler(uint8_t packet_type, uint16_t handle,
case ATT_EXCHANGE_MTU_RESPONSE:
{
uint16_t remote_rx_mtu = READ_BT_16(packet, 1);
uint16_t local_rx_mtu = l2cap_max_le_mtu());
uint16_t local_rx_mtu = l2cap_max_le_mtu();
peripheral->mtu = remote_rx_mtu < local_rx_mtu ? remote_rx_mtu : local_rx_mtu;
peripheral->mtu_state = MTU_EXCHANGED;
break;

View File

@ -874,9 +874,9 @@ static void event_handler(uint8_t *packet, int size){
}
#ifdef HAVE_BLE
if (COMMAND_COMPLETE_EVENT(packet, hci_le_read_buffer_size)){
hci_stack->le_data_packet_length = READ_BT_16(packet, 6);
hci_stack->le_data_packets_length = READ_BT_16(packet, 6);
hci_stack->le_acl_packets_total_num = packet[8];
log_info("hci_le_read_buffer_size: size %u, count %u\n", hci_stack->le_data_packet_length, hci_stack->le_acl_packets_total_num);
log_info("hci_le_read_buffer_size: size %u, count %u\n", hci_stack->le_data_packets_length, hci_stack->le_acl_packets_total_num);
}
#endif
// Dump local address