Skip to content

fix(rx): add 'ok platform headers' escape hatch to feature_flags include - #3563

Merged
zackees merged 1 commit into
masterfrom
fix/rx-cpp-hpp-ok-platform-headers
Jul 1, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/rx-cpp-hpp-ok-platform-headers

Conversation

@zackees

@zackees zackees commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

PR #3560 added an include of platforms/esp/32/feature_flags/enabled.h without the '// ok platform headers' suffix the codebase uses to opt into deep-platform-header allowance. Both PlatformIncludesChecker and PlatformTrampolineChecker rejected it, breaking every unit_test workflow (linux, macos, windows).

The include is legitimate — it sits inside the existing '#ifdef FL_IS_ESP32' block alongside three siblings that already carry the suffix. Add the same suffix.

Verified locally: bash lint --cpp completes green.

Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved ESP32-specific support by ensuring the correct feature flags are loaded during builds, helping prevent platform-specific issues.

PR #3560 added
    #include "platforms/esp/32/feature_flags/enabled.h"
without the '// ok platform headers' suffix the codebase uses to opt
into deep-platform-header allowance. Both the PlatformIncludesChecker
and PlatformTrampolineChecker lint rules rejected it, breaking every
unit_test workflow (linux, macos, windows).

The include is legitimate — it sits inside the existing
'#ifdef FL_IS_ESP32' block alongside three siblings that already
carry the suffix (rmt_rx_channel.h, gpio_isr_rx.h). Add the same
suffix.

Verified locally: bash lint --cpp completes green.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit 7f6f338 into master Jul 1, 2026
10 of 11 checks passed
@zackees
zackees deleted the fix/rx-cpp-hpp-ok-platform-headers branch July 1, 2026 23:36
@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3ed5868e-6911-46b6-81fb-93a724fdef1f

📥 Commits

Reviewing files that changed from the base of the PR and between 2f285a3 and 6382d1c.

📒 Files selected for processing (1)
  • src/fl/channels/rx.cpp.hpp

📝 Walkthrough

Walkthrough

A single-line change moves the inclusion of the ESP32 feature-flags header (platforms/esp/32/feature_flags/enabled.h) so it is now included within the FL_IS_ESP32 conditional block in rx.cpp.hpp.

Changes

ESP32 Include Adjustment

Layer / File(s) Summary
Include placement fix
src/fl/channels/rx.cpp.hpp
The ESP32 feature-flags header include is now placed under the #ifdef FL_IS_ESP32 conditional block.

Estimated code review effort: 1 (Trivial) | ~2 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/rx-cpp-hpp-ok-platform-headers

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 1, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant