mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 09:46:32 +00:00
Unload playlist on timed presets.
This commit is contained in:
parent
84624666ce
commit
296fe4b62e
@ -336,6 +336,7 @@ void checkTimers()
|
|||||||
&& (timerWeekday[i] & 0x01) //timer is enabled
|
&& (timerWeekday[i] & 0x01) //timer is enabled
|
||||||
&& ((timerWeekday[i] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
&& ((timerWeekday[i] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
||||||
{
|
{
|
||||||
|
unloadPlaylist();
|
||||||
applyPreset(timerMacro[i]);
|
applyPreset(timerMacro[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -349,6 +350,7 @@ void checkTimers()
|
|||||||
&& (timerWeekday[8] & 0x01) //timer is enabled
|
&& (timerWeekday[8] & 0x01) //timer is enabled
|
||||||
&& ((timerWeekday[8] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
&& ((timerWeekday[8] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
||||||
{
|
{
|
||||||
|
unloadPlaylist();
|
||||||
applyPreset(timerMacro[8]);
|
applyPreset(timerMacro[8]);
|
||||||
DEBUG_PRINTF("Sunrise macro %d triggered.",timerMacro[8]);
|
DEBUG_PRINTF("Sunrise macro %d triggered.",timerMacro[8]);
|
||||||
}
|
}
|
||||||
@ -363,6 +365,7 @@ void checkTimers()
|
|||||||
&& (timerWeekday[9] & 0x01) //timer is enabled
|
&& (timerWeekday[9] & 0x01) //timer is enabled
|
||||||
&& ((timerWeekday[9] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
&& ((timerWeekday[9] >> weekdayMondayFirst()) & 0x01)) //timer should activate at current day of week
|
||||||
{
|
{
|
||||||
|
unloadPlaylist();
|
||||||
applyPreset(timerMacro[9]);
|
applyPreset(timerMacro[9]);
|
||||||
DEBUG_PRINTF("Sunset macro %d triggered.",timerMacro[9]);
|
DEBUG_PRINTF("Sunset macro %d triggered.",timerMacro[9]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user