From 7a8ac8dae31fbebc9b764e7fcf530a5a6f65d562 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 7 Dec 2023 20:46:12 -0800 Subject: [PATCH] some core stuff --- VortexEngine/src/Log/Log.cpp | 4 ++++ VortexEngine/src/Patterns/Multi/MeteorPattern.cpp | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/VortexEngine/src/Log/Log.cpp b/VortexEngine/src/Log/Log.cpp index 3f4660c2e4..c79ff42b06 100644 --- a/VortexEngine/src/Log/Log.cpp +++ b/VortexEngine/src/Log/Log.cpp @@ -11,6 +11,10 @@ #include "VortexLib.h" #endif +#ifdef VORTEX_EMBEDDED +#include +#endif + #if LOGGING_LEVEL > 0 void InfoMsg(const char *msg, ...) { diff --git a/VortexEngine/src/Patterns/Multi/MeteorPattern.cpp b/VortexEngine/src/Patterns/Multi/MeteorPattern.cpp index 528fb1a36f..004da9867c 100644 --- a/VortexEngine/src/Patterns/Multi/MeteorPattern.cpp +++ b/VortexEngine/src/Patterns/Multi/MeteorPattern.cpp @@ -34,9 +34,10 @@ void MeteorPattern::blinkOff() void MeteorPattern::poststep() { - // when a new meteor is created it is incerted into the stash so the blinking pattern is not interrupted - Pair target = (Pair)m_randCtx.next8(PAIR_FIRST, PAIR_LAST); - RGBColor col = m_colorset.getNext(); - m_stash.setIndex(pairEven(target), col); - m_stash.setIndex(pairOdd(target), col); + for (uint8_t meteorCount = 0; meteorCount < (LED_COUNT / 2); ++meteorCount) { + // when a new meteor is created it is incerted into the stash so the blinking pattern is not interrupted + LedPos target = (LedPos)m_randCtx.next8(LED_FIRST, LED_LAST); + RGBColor col = m_colorset.getNext(); + m_stash.setIndex(target, col); + } }