From f1bca48a6e723e78e805a78bec5bb310ee803f25 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Thu, 23 Oct 2014 11:59:28 +0000 Subject: [PATCH] fix compile --- src/rfcomm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rfcomm.c b/src/rfcomm.c index 007fae667..aeafddb80 100644 --- a/src/rfcomm.c +++ b/src/rfcomm.c @@ -2015,9 +2015,11 @@ int rfcomm_can_send_packet_now(uint16_t rfcomm_cid){ // send packet over specific channel int rfcomm_send_internal(uint16_t rfcomm_cid, uint8_t *data, uint16_t len){ - int err = rfcomm_can_send_packet_now(); + int err = rfcomm_can_send_packet_now(rfcomm_cid); if (err) return err; + rfcomm_channel_t * channel = rfcomm_channel_for_rfcomm_cid(rfcomm_cid); + // send might cause l2cap to emit new credits, update counters first channel->credits_outgoing--; int packets_granted_decreased = 0;