mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-04 19:14:09 +00:00
le-audio/gatt-service: fix service lookup for mcs and vcs
This commit is contained in:
parent
6e96f7c765
commit
0473e096c9
@ -145,7 +145,7 @@ void microphone_control_service_server_init(gatt_microphone_control_mute_t mute_
|
|||||||
mc_mute_state = mute_state;
|
mc_mute_state = mute_state;
|
||||||
// get service handle range
|
// get service handle range
|
||||||
uint16_t start_handle = 0;
|
uint16_t start_handle = 0;
|
||||||
uint16_t end_handle = 0xfff;
|
uint16_t end_handle = 0xffff;
|
||||||
int service_found = gatt_server_get_handle_range_for_service_with_uuid16(ORG_BLUETOOTH_SERVICE_MICROPHONE_CONTROL, &start_handle, &end_handle);
|
int service_found = gatt_server_get_handle_range_for_service_with_uuid16(ORG_BLUETOOTH_SERVICE_MICROPHONE_CONTROL, &start_handle, &end_handle);
|
||||||
btstack_assert(service_found != 0);
|
btstack_assert(service_found != 0);
|
||||||
UNUSED(service_found);
|
UNUSED(service_found);
|
||||||
|
@ -415,7 +415,7 @@ void volume_control_service_server_init(uint8_t volume_setting, vcs_mute_t mute,
|
|||||||
|
|
||||||
// get service handle range
|
// get service handle range
|
||||||
uint16_t start_handle = 0;
|
uint16_t start_handle = 0;
|
||||||
uint16_t end_handle = 0xfff;
|
uint16_t end_handle = 0xffff;
|
||||||
int service_found = gatt_server_get_handle_range_for_service_with_uuid16(ORG_BLUETOOTH_SERVICE_VOLUME_CONTROL, &start_handle, &end_handle);
|
int service_found = gatt_server_get_handle_range_for_service_with_uuid16(ORG_BLUETOOTH_SERVICE_VOLUME_CONTROL, &start_handle, &end_handle);
|
||||||
btstack_assert(service_found != 0);
|
btstack_assert(service_found != 0);
|
||||||
UNUSED(service_found);
|
UNUSED(service_found);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user