FastLED 3.9.15
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 250 of file async_logger.cpp.hpp.

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

References mIntervalMs, and mTask.

Referenced by fl::configureAsyncLogService().

+ Here is the caller graph for this function: