Repository navigation
fix(channels): preserve AVR legacy white settings during encoding - #4786
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthrough
ChangesWhite-channel encoding
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to 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)
✨ Finishing Touches 💡 1📝 Generate docstrings
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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 |
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
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.