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

◆ findSegmentById()

const WLEDSegment * fl::WLED::findSegmentById ( u8 id) const

Find segment by ID.

Parameters
idSegment ID to find
Returns
Pointer to segment if found, nullptr otherwise

Definition at line 548 of file wled.cpp.hpp.

548 {
549 for (const auto& seg : mSegments) {
550 if (seg.mId == id) {
551 return &seg;
552 }
553 }
554 return nullptr;
555}
fl::vector< WLEDSegment > mSegments
Definition wled.h:459

References mSegments.