1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 05:42:20 +01:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston
2025-07-30 15:00:31 -10:00

View File

@@ -80,7 +80,6 @@ void BluetoothConnection::send_service_for_discovery_() {
// Process up to 3 services in this iteration // Process up to 3 services in this iteration
uint8_t services_to_process = uint8_t services_to_process =
std::min(MAX_SERVICES_PER_BATCH, static_cast<uint8_t>(this->service_count_ - this->send_service_)); std::min(MAX_SERVICES_PER_BATCH, static_cast<uint8_t>(this->service_count_ - this->send_service_));
uint8_t services_processed = 0;
resp.services.reserve(services_to_process); resp.services.reserve(services_to_process);
for (int service_idx = 0; service_idx < services_to_process; service_idx++) { for (int service_idx = 0; service_idx < services_to_process; service_idx++) {
@@ -116,7 +115,6 @@ void BluetoothConnection::send_service_for_discovery_() {
if (total_char_count == 0) { if (total_char_count == 0) {
// No characteristics, continue to next service // No characteristics, continue to next service
services_processed++;
continue; continue;
} }
@@ -190,8 +188,6 @@ void BluetoothConnection::send_service_for_discovery_() {
desc_offset++; desc_offset++;
} }
} }
services_processed++;
} }
// Send the message with 1-3 services // Send the message with 1-3 services