diff --git a/VortexEngine/src/Leds/LedTypes.h b/VortexEngine/src/Leds/LedTypes.h index c9954295dc..89209414d7 100644 --- a/VortexEngine/src/Leds/LedTypes.h +++ b/VortexEngine/src/Leds/LedTypes.h @@ -74,6 +74,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"); + // map other leds for multi compatibility #define LED_6 LED_0 #define LED_7 LED_1