mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Merge pull request #7174 from ptrooms/development
fix 12hr early Sunset/Sunrise (xdrv_09_timers.ino )
This commit is contained in:
commit
bbed0c6981
@ -583,7 +583,7 @@ const char HTTP_TIMER_SCRIPT3[] PROGMEM =
|
||||
"if(m==0){s|=l;}" // Get time
|
||||
#ifdef USE_SUNRISE
|
||||
"if((m==1)||(m==2)){"
|
||||
"if(qs('#dr').selectedIndex>0){l+=720;}" // If negative offset, add 12h to given offset time
|
||||
"if(qs('#dr').selectedIndex>0){if(l>0){l+=720;}}" // If negative offset and delta-time > 0, add 12h to given offset time
|
||||
"s|=l&0x7FF;" // Save offset instead of time
|
||||
"}"
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user