FastLED 3.10.6
Loading...
Searching...
No Matches

◆ disableBackgroundFlush()

void fl::AsyncLogger::disableBackgroundFlush ( )

Disable background flushing.

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

186 {
187 detail::BackgroundFlushState& state = Singleton<detail::BackgroundFlushState>::instance();
188
189 if (state.mEnabled && state.mTimerHandle.is_valid()) {
190 fl::isr::detach_handler(state.mTimerHandle);
191 state.mTimerHandle = fl::isr::handle(); // Reset to default (invalid) handle
192 state.mEnabled = false;
193 state.mNeedsFlush = false;
194 }
195}
TestState state
static T & instance() FL_NO_EXCEPT
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: