mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
fix compile
This commit is contained in:
parent
e5e1518d8a
commit
219eea5f01
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user