Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Using `np` in preset doesn't work when triggered by button

Aperta
#5,703 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
cpp
Ambito
embedded-iot

Direzione di ricerca

Start by tracing how the {"np":true} preset command is handled when triggered from the UI versus a button, using the reproduction steps as the entry point. Reproduce with a playlist whose entries all use manual timing, then compare the JSON state after each trigger. Done means the button advances to the next playlist preset just as the UI does, without unloading the playlist.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
What happened?

The API command {"np": true} works when activated from the UI, but not when activated from a button.

To Reproduce Bug

Create a playlist with a few entries, all with manual (i.e. t=0) timing. Create another preset that runs {"np":true} to advance to the next preset in the playlist.

Activate the playlist. Looking at the JSON state, I see {"ps": 7,"pl":10} where 7 and 10 correspond to the active preset and playlist, respectively.

Expected Behavior

If I use the UI to activate the "next preset" preset, the next preset in the playlist fires as expected. If I assign the preset to a button, and press the button, the active preset does not change, and instead the playlist gets unloaded ({"ps":7,"pl":-1}). I expected both methods of running the "next preset" preset to act the same.

Install Method

Self-Compiled

What version of WLED?

WLED 17.0.0-dev (2605011)

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

Anything else?

Potentially introduced by https://github.com/wled/WLED/issues/3827.

Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
C++
Stelle
18.8k
Fork
4.4k
Merge medio
4g 6h
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wled/WLED

Tutte le issue di wled/WLED

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.