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

◆ getPriority()

int fl::SpiChannelEngineAdapter::getPriority ( ) const

Get maximum priority among all controllers.

Returns
Highest priority (5-9 for true SPI adapters)

Definition at line 91 of file spi_channel_adapter.cpp.hpp.

91 {
92 int maxPriority = -1;
93 for (const auto& ctrl : mControllers) {
94 if (ctrl.priority > maxPriority) {
95 maxPriority = ctrl.priority;
96 }
97 }
98 return maxPriority;
99}
fl::vector< ControllerInfo > mControllers
All managed controllers.

References mControllers.