Skip to content

fix(channels): preserve AVR legacy white settings during encoding - #4786

Merged
zackees merged 3 commits into
masterfrom
fix/avr-channel-white-settings-4784
Oct 8, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/avr-channel-white-settings-4784

Conversation

@zackees

@zackees zackees commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Changes

Follow-up to #4785 / #4784: address CodeRabbit's final outside-diff finding, posted around the original merge. AVR excludes the settings notification virtual; base white setters therefore update LegacySettings without synchronizing ChannelOptions. Encode from authoritative LegacySettings on AVR, including active-mode checks, to preserve RGBW/RGBWW transitions and clearWhiteChannel(). Non-AVR keeps its existing synchronized ChannelOptions path, avoiding the12-byte ESP32-S3 increase observed when reading the base on all platforms. No added storage or AVR virtual slots.

Validation

  • Focused Channel ASAN/LSAN/UBSAN tests pass.
  • Repository lint passes.
  • Matched dashboard Uno Blink remains3762 bytes flash /168 bytes physical RAM.
  • Independent primary reviewer checked the getter-based correction.
  • Full CI requested with ci-full.

Final head d9dd401 passes the ESP32-S3 size gate with the existing350151-byte flash budget unchanged. The ATmega8 run reproduces the already verified RGBW838/RGBWEmulated338-byte capacity overflows exactly. Other full-matrix jobs are still running.

@zackees zackees added the ci-full Run the complete release-equivalent CI matrix on this PR SHA label Oct 8, 2026
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0b5f30b6-0ae4-4647-bed5-bd3159cecca9
📥 Commits

Reviewing files that changed from the base of the PR and between d7ea050 and d9dd401.

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

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

Channel::encodeFrame selects mLegacySettings on AVR and mSettings on other platforms. It uses the selected settings for white-channel values and pixel-format selection.

Changes

White-channel encoding

Layer / File(s) Summary
Use selected rendering settings
src/fl/channels/channel.cpp.hpp
encodeFrame uses platform-specific settings for RGBW and RGBWW values. It selects RGBWW or RGBW output when the corresponding variant exists and is active, and otherwise selects RGB.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to d9dd4

The reviewed source shows AVR white-channel updates reaching frame encoding, with format selection following the active white configuration. No merge-blocking risk is established.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: preserving AVR legacy white settings during channel encoding.
✨ Finishing Touches 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@zackees
zackees merged commit 619b776 into master Oct 8, 2026
122 of 124 checks passed
@zackees
zackees deleted the fix/avr-channel-white-settings-4784 branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run the complete release-equivalent CI matrix on this PR SHA

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant