mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
Merge branch 'btp_uuids_dynamic_services_sq' into integration
This commit is contained in:
@@ -252,7 +252,7 @@ void BluetoothConnection::send_service_for_discovery_() {
|
|||||||
|
|
||||||
// Calculate the actual size of just this service
|
// Calculate the actual size of just this service
|
||||||
api::ProtoSize service_sizer;
|
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
|
size_t service_size = service_sizer.get_size() + 1; // +1 for field tag
|
||||||
|
|
||||||
// Check if adding this service would exceed the limit
|
// Check if adding this service would exceed the limit
|
||||||
|
|||||||
Reference in New Issue
Block a user