mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
l2cap-ertm: fix setup of outgoing ertm tx buffers
This commit is contained in:
parent
7cbe539fe0
commit
0d3ee2efe6
@ -472,9 +472,9 @@ static void l2cap_ertm_configure_channel(l2cap_channel_t * channel, l2cap_ertm_c
|
||||
|
||||
// divide rest of data equally
|
||||
channel->local_mps = (size - pos) / (ertm_config->num_rx_buffers + ertm_config->num_tx_buffers);
|
||||
log_info("Local MPS: %u", channel->local_mtu);
|
||||
log_info("Local MPS: %u", channel->local_mps);
|
||||
channel->rx_packets_data = &buffer[pos];
|
||||
pos += ertm_config->num_rx_buffers * channel->local_mtu;
|
||||
pos += ertm_config->num_rx_buffers * channel->local_mps;
|
||||
channel->tx_packets_data = &buffer[pos];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user