mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 11:16:36 +00:00
RESIDENTStk: fix warning
git-svn-id: https://svn.fhem.de/fhem/trunk@14047 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
44f04083c8
commit
f5471078ee
@ -3269,13 +3269,16 @@ sub RESIDENTStk_wakeupGetNext($;$) {
|
||||
$definitiveNextTomorrow += $wakeupOffset * 60
|
||||
if ( defined($definitiveNextTomorrow) );
|
||||
|
||||
# correct change over midnight
|
||||
if ( defined($definitiveNextToday) ) {
|
||||
if ( $definitiveNextToday >= 86400 ) {
|
||||
$definitiveNextToday -= 86400;
|
||||
}
|
||||
elsif ( $definitiveNextToday < 0 ) {
|
||||
$definitiveNextToday += 86400;
|
||||
}
|
||||
|
||||
}
|
||||
if ( defined($definitiveNextTomorrow) ) {
|
||||
if ( $definitiveNextTomorrow >= 86400 ) {
|
||||
$definitiveNextTomorrow -= 86400;
|
||||
}
|
||||
@ -3284,6 +3287,7 @@ sub RESIDENTStk_wakeupGetNext($;$) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( defined($definitiveNextTodayDev)
|
||||
&& defined($definitiveNextToday) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user