diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 0972d6ccd6..8c723a04cb 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -600,7 +600,7 @@ template class ExternalRAMAllocator { ExternalRAMAllocator() = default; ExternalRAMAllocator(Flags flags) : flags_{flags} {} - template constexpr ExternalRAMAllocator(const ExternalRAMAllocator &other) : flags_{other.flags} {} + template constexpr ExternalRAMAllocator(const ExternalRAMAllocator &other) : flags_{other.flags_} {} T *allocate(size_t n) { size_t size = n * sizeof(T);