From 261e221cf71f5435d9fdc3bdf38bb0e320559e0f Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sun, 1 Dec 2019 13:28:15 +0000 Subject: [PATCH] 98_WekdayTimer.pm: fix log1 overwritten timer issue, forum #105873 git-svn-id: https://svn.fhem.de/fhem/trunk@20634 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_WeekdayTimer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index 3d3d56ef0..36edf1e1f 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -893,8 +893,8 @@ sub WeekdayTimer_Update($) { $activeTimer = WeekdayTimer_isAnActiveTimer ($hash, $dieGanzeWoche, $newParam, $overrulewday); $activeTimerState = WeekdayTimer_isAnActiveTimer ($hash, $tage, $newParam, $overrulewday); Log3 $hash, 4, "[$name] Update - past timer activated"; - WeekdayTimer_InternalTimer ("$idx", $timToSwitch, "$hash->{TYPE}_Update", $hash, 0) if $timToSwitch > $now; - #WeekdayTimer_SetTimerOfDay({ HASH => $hash}); + WeekdayTimer_RemoveInternalTimer("$idx", $hash); + WeekdayTimer_InternalTimer ("$idx", $timToSwitch, "$hash->{TYPE}_Update", $hash, 0) if ($timToSwitch > $now && ($activeTimerState||$activeTimer)); } else { $activeTimer = WeekdayTimer_isAnActiveTimer ($hash, $tage, $newParam, $overrulewday); $activeTimerState = $activeTimer;