le-audio/gatt-service: fix service lookup for mcs and vcs

This commit is contained in:
Matthias Ringwald 2022-11-03 15:14:40 +01:00
parent 6e96f7c765
commit 0473e096c9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);