Skip to content

JSON Playlist: Repeat Indefinitely #2016

Closed

Description

@pmf2021

When I send in a 0 for repeat, my lights do nothing. When I send in any other value, it works. I found that if I send in a "-1", it cycles indefinitely. The code must be decrementing down to zero.

Quick fix: Update documentation so that indefinite is -1, not zero.

WLED_0.12.0_ESP8266_2M.bin

p.s. Thank you for such wonderful software!!!!!

Activity

  1. blazoncek commented on Jun 7, 2021

    @blazoncek
    Contributor

    -1 is indefinite & random.
    0 is supposed to be just indefinite (maintaining the order of playlist entries).
    But as you found out, there is a bug that prevents playlist from running in such case.

  2. blazoncek commented on Jun 7, 2021

    @blazoncek
    Contributor

    As a temporary workaround you can set a high number as a "repeat" property.
    Unfortunately this is limited to 127 ATM, I already prepared a fix and will submit a PR to @Aircoookie

  3. pmf2021 commented on Jun 7, 2021

    @pmf2021
    Author

    Thank you!

  4. Aircoookie commented on Jun 7, 2021

    @Aircoookie
    Member

    Fix merged to master :)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions