From c68b35721c835c7c9ad6e43dc166bec3daaf5048 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 20 Sep 2024 02:46:04 -0700 Subject: [PATCH] desktop fix --- VortexEngine/src/Modes/Mode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VortexEngine/src/Modes/Mode.cpp b/VortexEngine/src/Modes/Mode.cpp index 98f7f472c7..e6d581252e 100644 --- a/VortexEngine/src/Modes/Mode.cpp +++ b/VortexEngine/src/Modes/Mode.cpp @@ -26,6 +26,9 @@ #define MODE_LED_ALL_SINGLE (MODE_LED_COUNT + 2) #define MODE_LED_ANY (MODE_LED_COUNT + 3) +// MAP_LED(LED_ALL) but for the cur mode +#define MAP_MODE_LED_ALL (LedMap)((2 << (LED_COUNT - 1)) - 1) + // for internal reference to the led count Mode::Mode(VortexEngine &engine, uint8_t numLeds) : m_engine(engine), @@ -760,7 +763,7 @@ bool Mode::hasSameSingleLed() const bool Mode::hasSparseSingleLed() const { LedMap map = getSingleLedMap(); - if (map == MAP_LED(MODE_LED_ALL) || map == 0) { + if (map == MAP_MODE_LED_ALL || map == 0) { return false; } // if anything else is set it's sparse