FastLED 3.10.8
Loading...
Searching...
No Matches

◆ autoResearchSetExclusiveDriverByName()

bool autoResearchSetExclusiveDriverByName ( const char * name)

AutoResearch-style helper: set an exclusive driver by name.

Parameters
nameDriver name (case-sensitive — must match an IChannelDriver::getName() value)
Returns
true if the driver was found and set as exclusive

AutoResearch resolves driver names at runtime from RPC/JSON payloads, so it can't use the typed FastLED.setExclusiveDriver(fl::Bus) form. This wrapper forwards to ChannelManager::instance().setExclusiveDriverByName(name).

Precondition: The caller must already have enrolled every available driver via FastLED.enableAllDrivers() (typically once in setup()). This helper deliberately does NOT call enableAllDrivers() itself — calling it per-iteration in a discovery loop re-adds every driver each time, triggering ChannelManager's "Replacing existing driver" path and resetting state mid-test (#2469).

For built-in driver code that knows its driver at compile time, use FastLED.setExclusiveDriver(fl::Bus::X) instead (typo-safe).

Referenced by autoresearch::maybeRegisterStubAutorun().

+ Here is the caller graph for this function: