rfcomm: increment credits_incoming before sending them

This commit is contained in:
Matthias Ringwald 2016-09-29 11:28:56 +02:00
parent 05cb04718d
commit ec3f4248d9

View File

@ -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){