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

◆ setInterval()

void fl::detail::AsyncLoggerServiceTask::setInterval ( u32 interval_ms)

Change the service interval (default 16ms)

Parameters
interval_msNew interval in milliseconds
Note
Can be called at any time to dynamically adjust servicing rate

Definition at line 252 of file async_logger.cpp.hpp.

252 {
253 mIntervalMs = interval_ms;
254
255 // Dynamically update task interval if task exists
256 if (mTask.is_valid()) {
257 mTask.set_interval_ms(interval_ms);
258 }
259}

References fl::FL_NO_EXCEPT, mIntervalMs, and mTask.

Referenced by fl::configureAsyncLogService().

+ Here is the caller graph for this function: