Skip to content

Commit

Permalink
Merge branch 'master' into handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 23, 2024
2 parents a85bab8 + 2efcfa1 commit 282f689
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 @@ -72,6 +72,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 compatibility for multi led patterns
#define LED_3 LED_0
#define LED_4 LED_1
Expand Down

0 comments on commit 282f689

Please sign in to comment.