Repository navigation
fix(esp32): move _FL_BIT macro out of FASTLED_UNUSABLE_PIN_MASK ifndef - #2277
Conversation
Previously _FL_BIT(B) was only defined when FASTLED_UNUSABLE_PIN_MASK was NOT externally defined. However, _FL_BIT is also used unconditionally further down the file (e.g. in the fallback SOC_GPIO_VALID_GPIO_MASK definition around line 164 and 166), so users who supplied their own FASTLED_UNUSABLE_PIN_MASK via a build flag (e.g. ESP32-PICO-V3-02 users who need to re-enable GPIO7/8/20) hit "_FL_BIT undeclared" compile errors. Moving the single-line #define outside the ifndef guard makes the macro always available without changing any existing behavior. Fixes #1372 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Reformat long print statements and function signatures; forward KeyboardInterrupt in FbuildSerialAdapter.reset_device so Ctrl+C is not swallowed by the bare except. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis pull request comprises four targeted improvements across CI and hardware-related files: reformatting console output for readability in GPIO operations, standardizing code style in GitHub project synchronization, introducing explicit keyboard interrupt handling in serial device operations, and reordering preprocessor guards for macro definition sequencing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ 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 |
📊 Header Compilation PerformanceTotal Time: 1159.06ms Top 5 Slowest Headers
Warnings
Full Report |
Summary
_FL_BITmacro definition outside theFASTLED_UNUSABLE_PIN_MASKifndef guard so it is always defined on ESP32.ci/autoresearch/gpio.pyandci/github_project_sync.py.KeyboardInterruptinFbuildSerialAdapter.reset_deviceso Ctrl+C is not swallowed by the bare except.Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Style
Chores