Skip to content

follow-up(#5148): ObjectFLED pad restore can corrupt the GPIO1 latch and glitch input pins #5191

Closed

Description

@zackees

Unaddressed CodeRabbit review finding(s) from #5148, checked against current master.

1. src/platforms/arm/teensy/teensy4_common/drivers/objectfled/objectfled_pad_state.h:44

capture() reads GPIO1_DR to save the output latch. On i.MX RT, reading DR for a pin that is configured as an input returns the pad level, not the latch. When that level differs from the latch, restore() writes the wrong value into the latch, and a later switch to output drives the wrong level.

2. src/platforms/arm/teensy/teensy4_common/drivers/objectfled/objectfled_pad_state.h:64

restore() writes DR before GDIR. For a pin that was an input and read high at capture time, the pad is still an output (from the SPI mode) when DR goes high, so deinit drives a short high pulse and can fight an external driver.

Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).

Activity

  1. added
    coderabbit-followup
    on Nov 8, 2026
  2. added
    sanitized
    on Nov 8, 2026
  3. moved this from Triage to Done in FastLED Trackeron Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coderabbit-followupsanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions