mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 06:47:18 +00:00
Update set.cpp
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.
This commit is contained in:
parent
071e0be445
commit
3b89814b69
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user