You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(esp32/rmt4): mark pending channels in-use and preserve active hardware channel flags - #5504
ChannelEngineRMT4Impl::show(): Mark channels setInUse(true) immediately when moved into mPendingChannels so deferred channels waiting for a free RMT hardware channel cannot be mutated mid-frame.
ChannelEngineRMT4Impl::clearPendingChannels() & OOM paths: Do not clear setInUse(false) on a ChannelDataPtr that is still actively transmitting in mChannels (state.inUse && state.sourceData == data), preventing premature buffer reuse while the RMT4 ISR is reading it.
CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.
Parsing warnings: 1
Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks"
If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Autofix · 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.
Change in examples/Blink per target. The left number is this PR's image flash / attributed RAM in bytes; the colored delta is the change from the merge base (red ↑ is larger, green ↓ is smaller, Same is unchanged).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes item #15 from #5492.
Summary
ChannelEngineRMT4Impl::show(): Mark channelssetInUse(true)immediately when moved intomPendingChannelsso deferred channels waiting for a free RMT hardware channel cannot be mutated mid-frame.ChannelEngineRMT4Impl::clearPendingChannels()& OOM paths: Do not clearsetInUse(false)on aChannelDataPtrthat is still actively transmitting inmChannels(state.inUse && state.sourceData == data), preventing premature buffer reuse while the RMT4 ISR is reading it.Verification
bash lint src/platforms/esp/32/drivers/rmt/rmt_4/channel_driver_rmt4.cpp.hpppassed.