FastLED 3.9.15
Loading...
Searching...
No Matches

◆ validateScreenMapSize()

static bool validateScreenMapSize ( const fl::ScreenMap & m,
const char * source )
static

Definition at line 84 of file FxSdCard.ino.

84 {
85 if (m.getLength() != NUM_LEDS) {
86 FL_WARN("Screenmap from " << source << " has "
87 << m.getLength() << " LEDs but NUM_LEDS=" << NUM_LEDS
88 << " — mapping would silently corrupt playback.");
89 gError = true;
90 return false;
91 }
92 return true;
93}
#define NUM_LEDS
bool gError
Definition FxSdCard.ino:72
u32 getLength() const FL_NOEXCEPT
#define FL_WARN(X)
Definition log.h:276

References FL_WARN, gError, fl::ScreenMap::getLength(), and NUM_LEDS.

Referenced by openVideoEitherFormat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: