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:
freakintoddles2 2024-04-30 16:33:30 -07:00 committed by GitHub
parent 071e0be445
commit 3b89814b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);