From c8b58b5c235b239aeab2a89002c3d5cab3a971ed 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);