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(teensy4): guard FlexIO and LPUART show paths against busy/OOM/timeout bugs - #5498
Guard show() with waitForReady() before starting transmission; if still busy on timeout, release pending channels cleanly instead of leaving stale isInUse() flags or corrupting in-flight state.
Bound busy-wait loops and handle mScratchBuffer.resize() OOM cleanly (dropping the frame and releasing isInUse()).
Mark all enqueued channels in use across multi-channel batches and release cleanly on error/completion.
Teensy 4 LPUART (channel_engine_lpuart.cpp.hpp):
Release enqueued channels when peripheral is null or instance creation fails.
Verify getTxBuffer() / getTxBufferSize() capacity before encoding/calling show(), dropping undersized frames instead of writing past the TX buffer.
Verification
bash lint passed on all 4 modified files.
bash test channel_engine_flexio --debug passed (ASAN/LSAN/UBSAN).
bash test ilpuart_peripheral --debug passed (ASAN/LSAN/UBSAN).
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 #10 from #5492.
Summary
channel_engine_flexio.cpp.hpp):show()withwaitForReady()before starting transmission; if still busy on timeout, release pending channels cleanly instead of leaving staleisInUse()flags or corrupting in-flight state.mScratchBuffer.resize()OOM cleanly (dropping the frame and releasingisInUse()).channel_engine_lpuart.cpp.hpp):getTxBuffer()/getTxBufferSize()capacity before encoding/callingshow(), dropping undersized frames instead of writing past the TX buffer.Verification
bash lintpassed on all 4 modified files.bash test channel_engine_flexio --debugpassed (ASAN/LSAN/UBSAN).bash test ilpuart_peripheral --debugpassed (ASAN/LSAN/UBSAN).