mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 08:46:34 +00:00
retrun value fix
This commit is contained in:
parent
7b56e53c47
commit
6dfbd07e86
@ -54,7 +54,7 @@ void unloadPlaylist() {
|
|||||||
|
|
||||||
|
|
||||||
int16_t loadPlaylist(JsonObject playlistObj, byte presetId) {
|
int16_t loadPlaylist(JsonObject playlistObj, byte presetId) {
|
||||||
if (currentPlaylist > 0 && parentPlaylistPresetId > 0) return; // we are already in nested playlist, do nothing
|
if (currentPlaylist > 0 && parentPlaylistPresetId > 0) return -1; // we are already in nested playlist, do nothing
|
||||||
if (currentPlaylist > 0) {
|
if (currentPlaylist > 0) {
|
||||||
parentPlaylistIndex = playlistIndex;
|
parentPlaylistIndex = playlistIndex;
|
||||||
parentPlaylistRepeat = playlistRepeat;
|
parentPlaylistRepeat = playlistRepeat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user