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

Method disableBackgroundFlush

src/fl/log/async_logger.cpp.hpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void AsyncLogger::disableBackgroundFlush() {
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}
194
195bool AsyncLogger::isBackgroundFlushEnabled() const {
196 return Singleton<detail::BackgroundFlushState>::instance().mEnabled;

Callers 1

async_logger.hppFile · 0.80

Calls 3

handleClass · 0.85
detach_handlerFunction · 0.50
is_validMethod · 0.45

Tested by

no test coverage detected