MCPcopy Create free account
hub / github.com/FastLED/FastLED / waitReady

Function waitReady

tests/platforms/esp/32/drivers/i2s/channel_driver_i2s.cpp:335–342  ·  view source on GitHub ↗

Wait for driver to become READY; returns false on timeout

Source from the content-addressed store, hash-verified

333
334/// Wait for driver to become READY; returns false on timeout
335bool waitReady(ChannelEngineI2S& driver, int maxIter = 5000) {
336 for (int i = 0; i < maxIter; i++) {
337 if (driver.poll() == IChannelDriver::DriverState::READY)
338 return true;
339 fl::this_thread::yield();
340 }
341 return false;
342}
343
344} // anonymous namespace
345

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

yieldFunction · 0.50
pollMethod · 0.45

Tested by

no test coverage detected