Skip to content

Commit

Permalink
Merge branch 'master' into duo
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 23, 2024
2 parents 1c55bef + 2efcfa1 commit 27cbcfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VortexEngine/src/Leds/LedTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ enum Pair : uint8_t
PAIR_LAST = (PAIR_COUNT - 1),
};

// Compile-time check on the number of pairs and leds
static_assert(LED_COUNT == (PAIR_COUNT * 2), "Incorrect number of Pairs for Leds! Adjust the Led enum or Pair enum to match");

// backwards compat with bigger patterns
#define LED_2 LED_0
#define LED_3 LED_1
Expand Down

0 comments on commit 27cbcfa

Please sign in to comment.