Repository navigation
perf(channel): gate emitDisabledDriverError diagnostic chain (#2950) - #2951
Conversation
The #2517 "silent-drop" diagnostic in `Channel::showPixels` exists to help users debug `FastLED.setExclusiveDriver<>` flows where a bound driver is currently disabled and the frame would be silently dropped. In release builds (NDEBUG → FASTLED_LOG_VERBOSITY=0 per #2890) every FL_ERROR site inside `emitDisabledDriverError` collapses to `do { } while(0)`, leaving an empty function body — but the call site is still live, so the linker keeps: - the empty `emitDisabledDriverError` body (3 fl::string&-args), - the `ChannelManager::instance().exclusiveDriverName()` getter (only reachable from this site), - the 3-argument fl::string pass-by-const-ref chain at the call site, - the `mDisabledDriverWarned` reads/writes. Gate the diagnostic emission and the one-shot latch maintenance on `FASTLED_LOG_RUNTIME_ENABLED`. The unconditional `return` on STATUS_DISABLED is preserved — release still drops the frame, just silently (the user accepted that constraint by disabling logs). Same dead-strip cascade pattern as #2918 / #2925 / #2943. Refs #2886. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesDriver-disabled diagnostic gating
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Behavior matrix
Test plan
Closes #2950. Refs #2886.
🤖 Generated with Claude Code
Summary by CodeRabbit