From a68a4a75928f21921da209ab44a77c7bbbd48c55 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Mon, 16 Dec 2024 22:19:21 +0100 Subject: [PATCH] test/gatt_client: extend mock --- test/gatt_client/mock.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/gatt_client/mock.c b/test/gatt_client/mock.c index ea276a416..6837da869 100644 --- a/test/gatt_client/mock.c +++ b/test/gatt_client/mock.c @@ -167,8 +167,14 @@ void hci_add_event_handler(btstack_packet_callback_registration_t * callback_han void l2cap_reserve_packet_buffer(void){} +static bool _l2cap_can_send_fixed_channel_packet_now = true; + +void l2cap_set_can_send_fixed_channel_packet_now(bool value){ + _l2cap_can_send_fixed_channel_packet_now = value; +} + bool l2cap_can_send_fixed_channel_packet_now(uint16_t handle, uint16_t channel_id){ - return true; + return _l2cap_can_send_fixed_channel_packet_now; } void l2cap_request_can_send_fix_channel_now_event(uint16_t handle, uint16_t channel_id){