Repository navigation
fix(teensy4): share ObjectFLED singleton, restore pin warnings (#4617 follow-up) - #4624
Merged
Merged
Conversation
…follow-up) Follow-up to #4617 (issue #4599) review findings: - Teensy init now registers BusTraits<Bus::FLEX_IO,0>'s singleton instead of a second ChannelEngineObjectFLED, so the first legacy addLeds<> no longer replaces the Channel-API engine and drops its queued data. - ChannelEngineObjectFLED::enqueue rejects a second strip on an already-queued pin with a one-time FL_WARN (old proxy behaviour). - Invalid pins emit a one-time default-build FL_WARN again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
zackees
added a commit
that referenced
this pull request
Sep 25, 2026
…th (#4625) #4624 put the one-time invalid-pin FL_WARN inside startTimingGroup(), which is a protected autoresearch-runtime-output region, so `bash lint` failed on master. Validate and warn once per pin in enqueue() instead; startTimingGroup() keeps its FL_LOG_OBJECTFLED skip. Follow-up to #4617. Co-authored-by: Claude Opus 5.5 <[email protected]>
zackees
added a commit
that referenced
this pull request
Sep 25, 2026
- ObjectFLED: re-enqueueing the same strip before show() is a silent no-op, not a false 'pin already in use' error. - FlexIO init registers the BusTraits<FLEX_IO,1> singleton instead of a second engine that later registration would replace. - Fix stale ObjectFLED priority comment (4, not 5). Follow-up to #4624 / #4599. Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to merged #4617 (#4599), addressing code-review findings.
1. Duplicate OBJECT_FLED engine.
addObjectFLEDIfPossiblebuilt its ownChannelEngineObjectFLEDat priority 5 while the legacy slim bridge registersBusTraits<Bus::FLEX_IO,0>::instancePtr()at priority 4, so the firstaddLeds<>replaced the driver ("Replacing existing driver 'OBJECT_FLED'"), destroying queued Channel-API data. Init now callsBusTraits<Bus::FLEX_IO,0>::registerWithManager()— one singleton, one priority (4, still below SPI 6-7 and FlexIO 8), matching RP/LPC init.2. Duplicate-pin protection.
ChannelEngineObjectFLED::enqueuerejects a second channel on a pin already queued this frame (not marked in-use) with a one-timeFASTLED ERROR: Pin X is already in use - strip disabledwarning. Linear scan over the queue, per-pin u64 latch: no allocation.3. Invalid pin warning. The
FL_LOG_OBJECTFLED-only log is back to a one-time default-buildFL_WARN("Strip on pin X is INVALID and has been disabled" + validator message).Verification
ObjectFLED engine - duplicate pin is rejected.bash lintclean;bash test slim_bridge_controllerpass;bash test --cpp313/313 unit, 95/95 examples.bash compile teensy41 --examples Blink,--examples BlinkParallel,teensy40 --examples Blink: OK.bash bloat teensy41 --example Blink --build: 84,596 B flash (vs 84,262 B in refactor(teensy4): legacy clockless onto SlimBridgeController over ChannelEngineObjectFLED (#4588, #4599) #4617, +334 B for the warning strings).Hardware validation still deferred to #4623. Singleton sharing (finding 1) has no cheap host test because the Teensy init TU is not built on host.
🤖 Generated with Claude Code