mirror of
https://github.com/esphome/esphome.git
synced 2025-07-30 15:16:37 +00:00
dry
This commit is contained in:
parent
5ebce4a901
commit
6e345c5f23
@ -689,8 +689,7 @@ class ProtoSize {
|
|||||||
*/
|
*/
|
||||||
inline void add_message_field(uint32_t field_id_size, uint32_t nested_size) {
|
inline void add_message_field(uint32_t field_id_size, uint32_t nested_size) {
|
||||||
if (nested_size != 0) {
|
if (nested_size != 0) {
|
||||||
// Field ID + length varint + nested message content
|
add_message_field_force(field_id_size, nested_size);
|
||||||
total_size_ += field_id_size + varint(nested_size) + nested_size;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user