mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 06:44:32 +00:00
honor MTU of registered services
This commit is contained in:
parent
feae72603a
commit
0b8164ba67
@ -296,6 +296,9 @@ static void rfcomm_channel_initialize(rfcomm_channel_t *channel, rfcomm_multiple
|
|||||||
// incoming connection
|
// incoming connection
|
||||||
channel->outgoing = 0;
|
channel->outgoing = 0;
|
||||||
channel->dlci = (server_channel << 1) | multiplexer->outgoing;
|
channel->dlci = (server_channel << 1) | multiplexer->outgoing;
|
||||||
|
if (channel->max_frame_size > service->max_frame_size) {
|
||||||
|
channel->max_frame_size = service->max_frame_size;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// outgoing connection
|
// outgoing connection
|
||||||
channel->outgoing = 1;
|
channel->outgoing = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user