FastLED 3.10.6
Loading...
Searching...
No Matches

◆ waitForReady()

bool fl::IChannelDriver::waitForReady ( u32 timeoutMs = 1000)

Wait for driver to become READY.

Parameters
timeoutMsOptional timeout in milliseconds (0 = no timeout)
Returns
true if driver became READY, false if timeout occurred

Definition at line 63 of file driver.cpp.hpp.

63 {
64 // wait until the driver is in a READY state.
65 bool ok = waitForCondition([this]() {
66 auto state = poll();
68 }, timeoutMs);
69 return ok;
70}
TestState state
bool waitForCondition(Condition condition, u32 timeoutMs=1000) FL_NO_EXCEPT
virtual DriverState poll() FL_NO_EXCEPT=0
Query driver state and perform maintenance.
@ READY
Hardware idle; ready to accept new transmissions.
Definition driver.h:170

References poll(), fl::IChannelDriver::DriverState::READY, state, and waitForCondition().

Referenced by fl::SlimBridgeController< DATA_PIN, TIMING, RGB_ORDER, WAIT_TIME, DriverTraits, XTRA0, DIRECT_SHOW >::showPixels(), and waitDone().

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