mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 11:37:10 +00:00
don't send when in server mode
This commit is contained in:
parent
4d8a3619b1
commit
7d592cf44a
@ -166,10 +166,12 @@ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case L2CAP_EVENT_CREDITS:
|
case L2CAP_EVENT_CREDITS:
|
||||||
// can send! (assuming single credits are handet out)
|
if (!serverMode) {
|
||||||
update_packet();
|
// can send! (assuming single credits are handet out)
|
||||||
local_cid = READ_BT_16(packet, 2);
|
update_packet();
|
||||||
bt_send_l2cap( local_cid, packet, 300);
|
local_cid = READ_BT_16(packet, 2);
|
||||||
|
bt_send_l2cap( local_cid, packet, PACKET_SIZE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user