mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 12:39:51 +00:00
gatt-services/battery_service_client: remove unreachable code
This commit is contained in:
parent
13ca7098d4
commit
76eae86790
@ -459,11 +459,6 @@ static void handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client->num_instances > MAX_NUM_BATTERY_SERVICES) {
|
|
||||||
log_info("%d battery services found, only first %d can be stored, increase MAX_NUM_BATTERY_SERVICES", client->num_instances, MAX_NUM_BATTERY_SERVICES);
|
|
||||||
client->num_instances = MAX_NUM_BATTERY_SERVICES;
|
|
||||||
}
|
|
||||||
|
|
||||||
client->service_index = 0;
|
client->service_index = 0;
|
||||||
client->state = BATTERY_SERVICE_CLIENT_STATE_W2_QUERY_CHARACTERISTICS;
|
client->state = BATTERY_SERVICE_CLIENT_STATE_W2_QUERY_CHARACTERISTICS;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user