From 6d2fc5040cdac7684e1fbef088a707a31b639d0b Mon Sep 17 00:00:00 2001 From: Brandon502 <105077712+Brandon502@users.noreply.github.com> Date: Sat, 11 May 2024 17:03:58 -0400 Subject: [PATCH] Game of Life Change Removed sizeof(byte) --- wled00/FX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 585c5353..ae02998d 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -5166,7 +5166,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https: const uint16_t cols = SEGMENT.virtualWidth(); const uint16_t rows = SEGMENT.virtualHeight(); - const uint16_t dataSize = sizeof(byte) * SEGMENT.length()/8; // using width*height prevents reallocation if mirroring is enabled + const uint16_t dataSize = SEGMENT.length() / 8; const uint16_t totalSize = dataSize*2 + sizeof(gameOfLife); if (!SEGENV.allocateData(totalSize)) return mode_static(); //allocation failed