From 49a1399ed676d4b87eeb3275ecf84b495b1452a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 11:38:25 +0000 Subject: [PATCH] Fix AutoPlaylist race condition: use CALL_MODE_NOTIFICATION for AutoChange presets Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com> --- usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h b/usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h index a4c557dd..15a55e27 100644 --- a/usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h +++ b/usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h @@ -257,7 +257,7 @@ class AutoPlaylistUsermod : public Usermod { // after change_lockout. Better for smaller change_lockout values. suspendPlaylist(); // suspend the playlist engine before changing to another preset - applyPreset(newpreset); + applyPreset(newpreset, CALL_MODE_NOTIFICATION); #ifdef USERMOD_AUTO_PLAYLIST_DEBUG USER_PRINTF("*** CHANGE distance = %4lu - change_interval was %5ldms - next change_threshold is %4u (%4u diff aprox)\n",(unsigned long)distance,change_interval,change_threshold,change_threshold_change);