Skip to content

Commit

Permalink
desktop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Sep 20, 2024
1 parent 0cef751 commit c68b357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion VortexEngine/src/Modes/Mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c68b357

Please sign in to comment.