mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
rfcomm: increment credits_incoming before sending them
This commit is contained in:
parent
05cb04718d
commit
ec3f4248d9
@ -1232,8 +1232,8 @@ static void rfcomm_multiplexer_state_machine(rfcomm_multiplexer_t * multiplexer,
|
||||
// MARK: RFCOMM CHANNEL
|
||||
|
||||
static void rfcomm_channel_send_credits(rfcomm_channel_t *channel, uint8_t credits){
|
||||
rfcomm_send_uih_credits(channel->multiplexer, channel->dlci, credits);
|
||||
channel->credits_incoming += credits;
|
||||
rfcomm_send_uih_credits(channel->multiplexer, channel->dlci, credits);
|
||||
}
|
||||
|
||||
static int rfcomm_channel_can_send(rfcomm_channel_t * channel){
|
||||
|
Loading…
x
Reference in New Issue
Block a user