# Possible Preset Cycle Bug

**URL:** <https://wled.discourse.group/t/possible-preset-cycle-bug/2001>\
**Category:** Issues\
**Created:** [January 6, 2021, 4:47pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001 "2021-01-06T16:47:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [January 6, 2021, 4:47pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001/1 "2021-01-06T16:47:46Z")

</div>

This was suggested in the chat, and works, but I’m wondering if it’s just leveraging a bug.

If you create three presets, one to turn the LEDs on in one color, the second changes to another color, and the third to turn off the LEDs, set up Preset cycle to run 1-3, start it, and set it to boot with that Preset Cycle, it appears to only run that cycle _once_. Nothing after the Off preset turns them back on.

---

<div class="post-metadata">

**Author:** ![huggy-d1](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/huggy-d1/32/51_2.png) [@huggy-d1](https://wled.discourse.group/u/huggy-d1)\
**Post date:** [January 6, 2021, 8:22pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001/2 "2021-01-06T20:22:28Z")

</div>

1. Color 1, duration x, then switch to preset 2
2. Color 2, duration y, then switch to preset 3
3. Set brightness to 0, duration z, then switch to preset 1

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [January 7, 2021, 2:09pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001/3 "2021-01-07T14:09:31Z")

</div>

Not sure what you are getting at. I’m asking if that’s a bug or a feature, not how to do it. 😉

---

<div class="post-metadata">

**Author:** ![huggy-d1](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/huggy-d1/32/51_2.png) [@huggy-d1](https://wled.discourse.group/u/huggy-d1)\
**Post date:** [January 8, 2021, 7:03pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001/4 "2021-01-08T19:03:57Z")

</div>

If the last step of a preset isn’t to start over with the 1st preset, it should just drop off the end of the preset.

If there were a way to set what to do at the end, like “Loop for ever, loop n times, revert to previous settings”, that would solve the problem. Of course, the default setting would be “revert to previous settings” so it can handle firmware upgrades with grace.

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [January 8, 2021, 7:37pm UTC](https://wled.discourse.group/t/possible-preset-cycle-bug/2001/5 "2021-01-08T19:37:38Z")

</div>

If I change the last preset to do something besides turn off it recycles.
