Skip to content

Zero length clockless led strip causes ARM SAMD21 to tightloop when calling .show()  #1101

Closed

Description

@apozharski

This if statement in the implementation for d21 chips causes a tightloop if the number of leds for a given CLEDController is set to 0.

While having a controller control 0 LEDs may seem a little obtuse it is useful in the case of doing run-time configuration. I have worked around the bug simply by short circuiting a call to .show() much earlier if the number of leds is 0. I am unsure if this fix would be an acceptable one to merge into mainline.

Activity

  1. added a commit that references this issue on Jan 17, 2025
    bd97bc6
  2. added a commit that references this issue on Jan 17, 2025
    5190997
  3. added a commit that references this issue on Jan 19, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions