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
test(spi): give the SoftwareSPIOutput wrapper test a rate in Hz after the stub joined the ESP32 branch - #5415
#5411 made the host stub use the ESP32 Hz-based SoftwareSPIOutput wrapper, while the test added by #5408 still passed the literal divider 2. That trips both the minimum-rate guard and the stale base-class assertion on master.
Request 10 MHz through DATA_RATE_MHZ and assert that the public wrapper derives from GenericSoftwareSPIOutput with the real Hz-to-divider mapping. At the stub's 1 GHz CPU clock this is divider 100. This preserves the #5051 mapping and every existing waveform assertion: all 256 byte values, eight rising edges per byte, chip-select boundaries, and the 25-edge RGB/start-bit layout. Production code is unchanged.
Validation:
RED: bash test fastspi and debug diagnostics reproduce the compile failure on master e7374e8b6.
GREEN: bash test fastspi and bash test fastspi --debug pass.
bash lint passes.
Full bash test --cpp passes: 377 unit targets and 97 examples.
Summary by CodeRabbit
Tests
Expanded compile-time validation of software SPI output configurations using dividers derived from the requested data rate and CPU frequency.
Added a check that the software SPI output type uses the corresponding generic output configuration, strengthening coverage of rate-dependent setup behavior.
… the stub joined the ESP32 branch
Follow up #5408 and #5411: the host stub now shares the ESP32 Hz-to-divider mapping from #5051. Keep all byte, edge-count, chip-select and start-bit assertions intact.
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 wrapper type check now derives a divider from a 10 MHz rate and FL_CPU_FREQUENCY(). It verifies that SoftwareSPIOutput inherits from the matching GenericSoftwareSPIOutput specialization.
Changes: Software SPI rate check
Layer / File(s)
Summary
Wrapper type assertion tests/unit/fastspi.cpp
The compile-time check derives the divider from DATA_RATE_MHZ(10) and FL_CPU_FREQUENCY(), then checks inheritance from the corresponding GenericSoftwareSPIOutput specialization.
FastLED/FastLED#5129 — Converts ESP32 SoftwareSPIOutput rates from Hz to a divider, which this test checks.
Merge Risk: Minimal · up to 1dc09
This updates a unit test to match the host stub's Hz-based SPI wrapper. It does not change production behavior, and no merge-blocking risk remains.
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 test change (test(spi)) and the SoftwareSPIOutput wrapper test. It also states the cause: the test now supplies a rate in Hz because the stub joined the ESP32 branch. The change se…
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 test change (test(spi)) and the SoftwareSPIOutput wrapper test. It also states the cause: the test now supplies a rate in Hz because the stub joined the ESP32 branch. The change set matches this: the test swaps the old divider pass-through for DATA_RATE_MHZ(10) and bitbangDividerFromHz with FL_CPU_FREQUENCY(), and checks inheritance from GenericSoftwareSPIOutput. The title is long (102 characters), but it describes the main change.
Finishing Touches
Generate unit tests (beta)
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.
Reviewing files that changed from the base of the PR and between cbe7b61 and 1dc094c.
Files selected for processing: 1
tests/unit/fastspi.cpp
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.
github-actionsBot
added
sanitized
Title, body and conversation screened; review text requires separate screening.
and removed
sanitized
Title, body and conversation screened; review text requires separate screening.
labels
Nov 22, 2026
github-actionsBot
added
sanitized
Title, body and conversation screened; review text requires separate screening.
and removed
sanitized
Title, body and conversation screened; review text requires separate screening.
labels
Nov 22, 2026
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
sanitizedTitle, body and conversation screened; review text requires separate screening.
1 participant
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.
#5411 made the host stub use the ESP32 Hz-based
SoftwareSPIOutputwrapper, while the test added by #5408 still passed the literal divider2. That trips both the minimum-rate guard and the stale base-class assertion on master.Request 10 MHz through
DATA_RATE_MHZand assert that the public wrapper derives fromGenericSoftwareSPIOutputwith the real Hz-to-divider mapping. At the stub's 1 GHz CPU clock this is divider 100. This preserves the #5051 mapping and every existing waveform assertion: all 256 byte values, eight rising edges per byte, chip-select boundaries, and the 25-edge RGB/start-bit layout. Production code is unchanged.Validation:
bash test fastspiand debug diagnostics reproduce the compile failure on mastere7374e8b6.bash test fastspiandbash test fastspi --debugpass.bash lintpasses.bash test --cpppasses: 377 unit targets and 97 examples.Summary by CodeRabbit