From 6dfbd07e86d80e27164fd9a2e6b6ef53c265e6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Thu, 12 Dec 2024 22:08:21 +0100 Subject: [PATCH] retrun value fix --- wled00/playlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/playlist.cpp b/wled00/playlist.cpp index 0897eddad..bacfbc1a2 100644 --- a/wled00/playlist.cpp +++ b/wled00/playlist.cpp @@ -54,7 +54,7 @@ void unloadPlaylist() { 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) { parentPlaylistIndex = playlistIndex; parentPlaylistRepeat = playlistRepeat;