mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 21:35:16 +00:00
Merge branch 'master' into ble-api-cleanup
This commit is contained in:
commit
68d15bfc4c
@ -1924,7 +1924,7 @@ int rfcomm_send_prepared(uint16_t rfcomm_cid, uint16_t len){
|
|||||||
|
|
||||||
int err = rfcomm_assert_send_valid(channel, len);
|
int err = rfcomm_assert_send_valid(channel, len);
|
||||||
if (err) return err;
|
if (err) return err;
|
||||||
if (l2cap_can_send_prepared_packet_now(channel->multiplexer->l2cap_cid)){
|
if (!l2cap_can_send_prepared_packet_now(channel->multiplexer->l2cap_cid)){
|
||||||
log_error("rfcomm_send_prepared: l2cap cannot send now");
|
log_error("rfcomm_send_prepared: l2cap cannot send now");
|
||||||
return BTSTACK_ACL_BUFFERS_FULL;
|
return BTSTACK_ACL_BUFFERS_FULL;
|
||||||
}
|
}
|
||||||
@ -1952,7 +1952,7 @@ int rfcomm_send(uint16_t rfcomm_cid, uint8_t *data, uint16_t len){
|
|||||||
|
|
||||||
int err = rfcomm_assert_send_valid(channel, len);
|
int err = rfcomm_assert_send_valid(channel, len);
|
||||||
if (err) return err;
|
if (err) return err;
|
||||||
if (l2cap_can_send_packet_now(channel->multiplexer->l2cap_cid)){
|
if (!l2cap_can_send_packet_now(channel->multiplexer->l2cap_cid)){
|
||||||
log_error("rfcomm_send_internal: l2cap cannot send now");
|
log_error("rfcomm_send_internal: l2cap cannot send now");
|
||||||
return BTSTACK_ACL_BUFFERS_FULL;
|
return BTSTACK_ACL_BUFFERS_FULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user