Skip to content

fix(teensy4): review follow-ups for the ObjectFLED slim bridge - #4629

Merged
zackees merged 1 commit into
masterfrom
fix/teensy4-review-followups
Sep 25, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/teensy4-review-followups

Conversation

@zackees

@zackees zackees commented Sep 25, 2026

Copy link
Copy Markdown
Member

Follow-up to the code review of #4624. Part of #4580 / #4599.

  • False duplicate-pin error: ChannelEngineObjectFLED::enqueue now returns silently when the same ChannelData is enqueued twice before show() (for example showLeds() called twice in one frame). Previously that printed a one-time "Pin N is already in use - strip disabled" although nothing was disabled. Two different strips on one pin are still rejected with the warning. New host test: ObjectFLED engine - same strip enqueued twice is sent once.
  • FlexIO twin engine (same bug class that fix(teensy4): share ObjectFLED singleton, restore pin warnings (#4617 follow-up) #4624 fixed for ObjectFLED): Teensy init built its own ChannelEngineFlexIO. It now registers the BusTraits<Bus::FLEX_IO, 1> singleton at the same priority 8, so a later traits registration no longer replaces a different object and drops its queued frames.
    • Not changed here: BusTraits<Bus::FLEX_IO,1>::registerWithManager() still registers at its default priority 3, so calling it after init re-adds the same object at priority 3.
  • Stale comment: ObjectFLED's priority is 4, not 5.

Validation:

🤖 Generated with Claude Code

- 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]>
@zackees
zackees merged commit 8bf4e36 into master Sep 25, 2026
@zackees
zackees deleted the fix/teensy4-review-followups branch September 25, 2026 05:20
@fastled-project-sync fastled-project-sync Bot moved this from Done to Triage in FastLED Tracker Sep 25, 2026
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a6188440-d912-4a2b-9f93-661e1b5ca575

📥 Commits

Reviewing files that changed from the base of the PR and between e72d031 and c9fbfb3.

📒 Files selected for processing (3)
  • src/platforms/arm/teensy/teensy4_common/drivers/objectfled/channel_engine_objectfled.cpp.hpp
  • src/platforms/arm/teensy/teensy4_common/init_channel_driver_mxrt1062.cpp.hpp
  • tests/platforms/arm/teensy/teensy4_common/drivers/objectfled/channel_engine_objectfled.cpp
 _______________________________________________________________
< You're one `console.log` away from enlightenment. Keep going. >
 ---------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant