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

Method isBusy

src/platforms/esp/32/drivers/uart/uart_peripheral_esp.cpp.hpp:298–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298bool UartPeripheralEsp::isBusy() const FL_NOEXCEPT {
299 if (!mInitialized) {
300 return false;
301 }
302
303 // Check reset period FIRST (channel draining)
304 const u64 now = fl::micros();
305 if (now < mResetExpireTime) {
306 return true; // Still in reset period
307 }
308
309 // Then check if transmission is still in progress
310 // Non-blocking poll: waitTxDone with 0 timeout
311 // Cast away const since we're calling a non-const method
312 return !const_cast<UartPeripheralEsp*>(this)->waitTxDone(0);
313}
314
315//=============================================================================
316// State Queries

Callers 1

pollMethod · 0.45

Calls 2

microsFunction · 0.50
waitTxDoneMethod · 0.45

Tested by

no test coverage detected