Skip to content

Commit

Permalink
Update set.cpp
Browse files Browse the repository at this point in the history
added new NP command to API to allow user to skip to next preset in a playlist. Example use is win&NP in a preset.
  • Loading branch information
freakintoddles2 authored Apr 30, 2024
1 parent 071e0be commit 3b89814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wled00/set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,9 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)
applyPreset(presetCycCurr);
}

pos = req.indexOf(F("NP")); //skips to next preset in a playlist
if (pos > 0) handlePlaylist(true);

//set brightness
updateVal(req.c_str(), "&A=", &bri);

Expand Down

0 comments on commit 3b89814

Please sign in to comment.