From 8a1034a92f4bc9cde3f29897d6c580aa121b8b5c Mon Sep 17 00:00:00 2001 From: Benjamin Klotz Date: Fri, 17 Jun 2022 03:32:43 +0200 Subject: [PATCH] Bugfix for ExternalRAMAllocator copy constructor (#3571) --- esphome/core/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);