Set autochange in correct state

This commit is contained in:
Will Tatam
2024-03-06 10:43:16 +00:00
parent 730714b0d6
commit a8661b5125

View File

@@ -131,7 +131,6 @@ class AutoPlaylistUsermod : public Usermod {
USER_PRINTF("AutoPlaylist: Silence - apply %s\n", name.c_str());
applyPreset(ambientPlaylist, CALL_MODE_NOTIFICATION);
}
if(autoChange) change(um_data);
}
else {
if(silenceDetected) {
@@ -141,6 +140,7 @@ class AutoPlaylistUsermod : public Usermod {
USER_PRINTF("AutoPlaylist: End of silence - apply %s\n", name.c_str());
applyPreset(musicPlaylist, CALL_MODE_NOTIFICATION);
}
if(autoChange) change(um_data);
}
}