Fix AutoPlaylist race condition: use CALL_MODE_NOTIFICATION for AutoChange presets

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-20 11:38:25 +00:00
parent 2a01b5862a
commit 49a1399ed6

View File

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