mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	revert
This commit is contained in:
		| @@ -230,8 +230,8 @@ void BluetoothConnection::send_service_for_discovery_() { | |||||||
|     service_resp.handle = service_result.start_handle; |     service_resp.handle = service_result.start_handle; | ||||||
|  |  | ||||||
|     if (total_char_count > 0) { |     if (total_char_count > 0) { | ||||||
|       // Initialize FixedVector with exact count and process characteristics |       // Reserve space and process characteristics | ||||||
|       service_resp.characteristics.init(total_char_count); |       service_resp.characteristics.reserve(total_char_count); | ||||||
|       uint16_t char_offset = 0; |       uint16_t char_offset = 0; | ||||||
|       esp_gattc_char_elem_t char_result; |       esp_gattc_char_elem_t char_result; | ||||||
|       while (true) {  // characteristics |       while (true) {  // characteristics | ||||||
| @@ -275,8 +275,8 @@ void BluetoothConnection::send_service_for_discovery_() { | |||||||
|           continue; |           continue; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         // Initialize FixedVector with exact count and process descriptors |         // Reserve space and process descriptors | ||||||
|         characteristic_resp.descriptors.init(total_desc_count); |         characteristic_resp.descriptors.reserve(total_desc_count); | ||||||
|         uint16_t desc_offset = 0; |         uint16_t desc_offset = 0; | ||||||
|         esp_gattc_descr_elem_t desc_result; |         esp_gattc_descr_elem_t desc_result; | ||||||
|         while (true) {  // descriptors |         while (true) {  // descriptors | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user