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
ChannelDriverPARLIOImpl::show(): Check waitForReady() return value; on timeout, release pending channels and drop the frame instead of clobbering active DMA state. Also release channels if no group successfully starts transmission.
ChannelDriverPARLIOImpl::poll(): Always return DriverState::DRAINING (never READY) when advancing to the next timing group for ≥3 groups, so callers do not treat an in-flight frame as complete mid-transmission.
ChannelDriverPARLIOImpl::prepareScratchBuffer(): Guard against integer overflow and resize() OOM; zero-fill empty lanes instead of returning early with stale bytes.
ChannelDriverPARLIO (polymorphic wrapper):
Separate mEnqueuedChannels from mTransmittingChannels so enqueue() during an active transmission is preserved across poll() completion.
Guard show() with waitForReady() before touching active clockless/SPI state or recreating mClocklessDriver.
Release isInUse() on all transmitting channels (including pending SPI channels) on clockless ERROR or failed transmission start.
Guard mSpiScratchBuffer.resize() against OOM and wait/clean up cleanly in ~ChannelDriverPARLIO().
Verification
bash lint passed on all 3 modified files.
bash test parlio_driver --debug passed (ASAN/LSAN/UBSAN), including new tests for 3 timing groups, enqueue-during-active-frame preservation, and SPI isInUse() cleanup on transmit failure.
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 #7 from #5492.
Summary
ChannelDriverPARLIOImpl::show(): CheckwaitForReady()return value; on timeout, release pending channels and drop the frame instead of clobbering active DMA state. Also release channels if no group successfully starts transmission.ChannelDriverPARLIOImpl::poll(): Always returnDriverState::DRAINING(neverREADY) when advancing to the next timing group for ≥3 groups, so callers do not treat an in-flight frame as complete mid-transmission.ChannelDriverPARLIOImpl::prepareScratchBuffer(): Guard against integer overflow andresize()OOM; zero-fill empty lanes instead of returning early with stale bytes.ChannelDriverPARLIO(polymorphic wrapper):mEnqueuedChannelsfrommTransmittingChannelssoenqueue()during an active transmission is preserved acrosspoll()completion.show()withwaitForReady()before touching active clockless/SPI state or recreatingmClocklessDriver.isInUse()on all transmitting channels (including pending SPI channels) on clocklessERRORor failed transmission start.mSpiScratchBuffer.resize()against OOM and wait/clean up cleanly in~ChannelDriverPARLIO().Verification
bash lintpassed on all 3 modified files.bash test parlio_driver --debugpassed (ASAN/LSAN/UBSAN), including new tests for 3 timing groups, enqueue-during-active-frame preservation, and SPIisInUse()cleanup on transmit failure.