1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 08:02:23 +01:00

Merge branch 'btp_uuids_dynamic_services_sq' into memory_api

This commit is contained in:
J. Nick Koston
2025-07-31 11:45:28 -10:00

View File

@@ -252,7 +252,7 @@ void BluetoothConnection::send_service_for_discovery_() {
// Calculate the actual size of just this service
api::ProtoSize service_sizer;
service.calculate_size(service_sizer);
service_resp.calculate_size(service_sizer);
size_t service_size = service_sizer.get_size() + 1; // +1 for field tag
// Check if adding this service would exceed the limit