mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_MSwitch.pm:Bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@18080 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9c5224bedf
commit
a17e21df0e
@ -7092,6 +7092,15 @@ sub MSwitch_Checkcond_time($$) {
|
|||||||
$adday = 1
|
$adday = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $timeaktuell > $timecond1 && $timecond2 < $timecond1 )
|
||||||
|
|
||||||
|
{
|
||||||
|
use constant SECONDS_PER_DAY => 60 * 60 * 24;
|
||||||
|
$timecond2 = $timecond2 + SECONDS_PER_DAY;
|
||||||
|
$adday = 1
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
######## old
|
######## old
|
||||||
# if ( ( $akthour < $hour1 && $akthour <= $hour2 ) && $hour2 < $hour1 ) # und
|
# if ( ( $akthour < $hour1 && $akthour <= $hour2 ) && $hour2 < $hour1 ) # und
|
||||||
|
Loading…
Reference in New Issue
Block a user