mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +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
|
||||
channel->outgoing = 0;
|
||||
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 {
|
||||
// outgoing connection
|
||||
channel->outgoing = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user