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(lcd-clockless): keep active frame on DMA timeout - #5480
ESP32-S3 LCD clockless show() now drops the queued frame when the preceding DMA transfer misses its drain deadline. The callback and worker retain the active frame until completion. An initial transmission failure still allows the next frame to retry.
This is the clockless counterpart to #5479 and an edge case in the layered ESP32 show path tracked in #5356.
Evidence
The test alone reproduced a second transmission and premature buffer release under ASan/UBSan.
The fixed sanitizer suite and changed-file lint passed. The regression checks that the active frame completes and a fresh frame can then start.
Full host C++ validation is running. Full hosted CI includes the ESP32-S3 LCD emulator. The attached ESP32-C6 and LPC boards lack this S3-only path.
Summary by CodeRabbit
Bug Fixes
Improved reliability when displaying frames while another frame is still transmitting. The active transmission is preserved, and a frame that could not be queued is not sent later unless submitted again after the active frame completes. This helps prevent unexpected or incomplete frame updates.
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
No actionable comments were generated in the recent review.
Walkthrough
The ESP32 LCD clockless driver now preserves active transmission state when readiness times out. A unit test checks that a queued frame is not transmitted until it is explicitly enqueued after the active frame completes.
Changes: ESP32 LCD clockless frame handling
Layer / File(s)
Summary
Preserve active transmission and verify queued frames src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp, tests/unit/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp
On a readiness timeout, show() clears newly enqueued channels and returns without releasing active transmission state. The test checks that a queued frame is not transmitted until it is explicitly enqueued after the active frame completes.
FastLED/FastLED#5479: Applies related frame-retention behavior to the ESP32-S3 LCD SPI driver.
Merge Risk: Minimal · up to 16b58
The change keeps the active LCD frame alive when the previous DMA transfer misses its drain deadline, so a queued frame no longer causes a premature buffer release. A regression test covers the behavior. No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the fix area (lcd-clockless) and the behavior change (keeping the active frame when the DMA times out). The raw summary says show() no longer forces release of active DMA channels afte…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix area (lcd-clockless) and the behavior change (keeping the active frame when the DMA times out). The raw summary says show() no longer forces release of active DMA channels after the 2-second readiness timeout, and it adds a test for repeated show() calls while a frame is active. The objectives describe the same edge case. The title is concise, uses the conventional fix(scope) form, and covers the primary change. It does not mention the added test, which is acceptable.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
Create a new PR
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.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.
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.
Summary
ESP32-S3 LCD clockless
show()now drops the queued frame when the preceding DMA transfer misses its drain deadline. The callback and worker retain the active frame until completion. An initial transmission failure still allows the next frame to retry.This is the clockless counterpart to #5479 and an edge case in the layered ESP32 show path tracked in #5356.
Evidence
Summary by CodeRabbit