mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	cleanup
This commit is contained in:
		| @@ -1938,15 +1938,11 @@ void BluetoothGATTService::calculate_size(uint32_t &total_size) const { | ||||
| } | ||||
| void BluetoothGATTGetServicesResponse::encode(ProtoWriteBuffer buffer) const { | ||||
|   buffer.encode_uint64(1, this->address); | ||||
|   for (const auto &it : this->services) { | ||||
|     buffer.encode_message(2, it, true); | ||||
|   } | ||||
|   buffer.encode_message(2, this->services[0], true); | ||||
| } | ||||
| void BluetoothGATTGetServicesResponse::calculate_size(uint32_t &total_size) const { | ||||
|   ProtoSize::add_uint64_field(total_size, 1, this->address); | ||||
|   for (const auto &it : this->services) { | ||||
|     ProtoSize::add_message_object_repeated(total_size, 1, it); | ||||
|   } | ||||
|   ProtoSize::add_message_object_repeated(total_size, 1, this->services[0]); | ||||
| } | ||||
| void BluetoothGATTGetServicesDoneResponse::encode(ProtoWriteBuffer buffer) const { | ||||
|   buffer.encode_uint64(1, this->address); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user