1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-27 07:32:22 +01:00
This commit is contained in:
J. Nick Koston
2025-07-31 11:45:12 -10:00
parent 854e29161b
commit 30b687ccbb

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