kopia lustrzana https://github.com/Aircoookie/WLED
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.pull/3946/head
rodzic
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);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue