diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index d6e993d3a5a..e7802c722b8 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -276,8 +276,7 @@ class ProtoWriteBuffer { this->debug_check_bounds_(1); *this->pos_++ = value ? 0x01 : 0x00; } - // noinline: 51 call sites; inlining causes net code growth vs a single out-of-line copy - __attribute__((noinline)) void encode_fixed32(uint32_t field_id, uint32_t value, bool force = false) { + void encode_fixed32(uint32_t field_id, uint32_t value, bool force = false) { if (value == 0 && !force) return;