FastLED 3.9.15
Loading...
Searching...
No Matches

◆ disableBackgroundFlush()

void fl::AsyncLogger::disableBackgroundFlush ( )

Disable background flushing.

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

184 {
185 detail::BackgroundFlushState& state = Singleton<detail::BackgroundFlushState>::instance();
186
187 if (state.mEnabled && state.mTimerHandle.is_valid()) {
188 fl::isr::detach_handler(state.mTimerHandle);
189 state.mTimerHandle = fl::isr::handle(); // Reset to default (invalid) handle
190 state.mEnabled = false;
191 state.mNeedsFlush = false;
192 }
193}
TestState state
static T & instance() FL_NOEXCEPT
Definition singleton.h:41
int detach_handler(handle &h)
Detach an ISR handler.

References fl::isr::detach_handler(), fl::Singleton< T, N >::instance(), and state.

Referenced by ~AsyncLogger(), and enableBackgroundFlush().

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