mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 02:51:29 +00:00
Fix merge issues: write_short_string to static ProtoEncode, add debug arg
- Convert ProtoEncode::write_short_string to static method with pos param - Fix codegen to emit ProtoEncode::write_short_string(pos, ...) - Add PROTO_ENCODE_DEBUG_INIT to encode_fn call in encode_to_buffer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7122fb6f88
commit
33285dfe27
@@ -444,7 +444,7 @@ class APIConnection final : public APIServerConnectionBase {
|
||||
auto &shared_buf = conn->parent_->get_shared_buffer_ref();
|
||||
shared_buf.resize(shared_buf.size() + to_add);
|
||||
ProtoWriteBuffer buffer{&shared_buf, shared_buf.size() - calculated_size};
|
||||
encode_fn(msg, buffer);
|
||||
encode_fn(msg, buffer PROTO_ENCODE_DEBUG_INIT(&shared_buf));
|
||||
|
||||
return total_calculated_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user