mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
reset new credits before actually sending them
This commit is contained in:
parent
d9a327f9f1
commit
ef372ddf24
@ -1453,8 +1453,9 @@ static void rfcomm_channel_state_machine(rfcomm_channel_t *channel, rfcomm_chann
|
||||
channel->state_var &= ~RFCOMM_CHANNEL_STATE_VAR_SEND_CREDITS;
|
||||
channel->state_var |= RFCOMM_CHANNEL_STATE_VAR_SENT_CREDITS;
|
||||
if (channel->new_credits_incoming) {
|
||||
rfcomm_channel_send_credits(channel, channel->new_credits_incoming);
|
||||
uint8_t new_credits = channel->new_credits_incoming;
|
||||
channel->new_credits_incoming = 0;
|
||||
rfcomm_channel_send_credits(channel, new_credits);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user