Skip to content

Commit

Permalink
fixed handle pair check
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 23, 2024
1 parent 282f689 commit 653858e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VortexEngine/src/Leds/LedTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ enum Pair : uint8_t
};

// 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");
// The handle only has 3 leds so the pair check is a little offset
static_assert(LED_COUNT == ((PAIR_COUNT * 2) - 1), "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
Expand Down

0 comments on commit 653858e

Please sign in to comment.