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

◆ addToDrawList()

void fl::Channel::addToDrawList ( )

Add this channel to the global controller draw list.

Definition at line 724 of file channel.cpp.hpp.

724 {
725 if (isInList()) {
726 FL_WARN("Channel '" << mName << "': Skipping addToDrawList() - already in draw list");
727 return;
728 }
730 // Fire event after adding to draw list (detectable even if user bypasses FastLED.add())
731 auto& events = ChannelEvents::instance();
732 events.onChannelAdded(*this);
733}
bool isInList() const FL_NOEXCEPT
Check if this controller is in the linked list.
void addToList() FL_NOEXCEPT
Add this controller to the linked list.
fl::string mName
Definition channel.h:277
#define FL_WARN(X)
Definition log.h:276
static ChannelEvents & instance()

References fl::CLEDController::addToList(), FL_WARN, fl::ChannelEvents::instance(), fl::CLEDController::isInList(), and mName.

+ Here is the call graph for this function: