From b10d679547a8758932ff23c4846352d44b1a56ab Mon Sep 17 00:00:00 2001 From: dietmar63 Date: Sat, 23 Nov 2013 18:11:16 +0000 Subject: [PATCH] - some problems with the control of timers fixed git-svn-id: https://svn.fhem.de/fhem/trunk@4278 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_Heating_Control.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fhem/FHEM/98_Heating_Control.pm b/fhem/FHEM/98_Heating_Control.pm index 8d93895c8..d250ae558 100644 --- a/fhem/FHEM/98_Heating_Control.pm +++ b/fhem/FHEM/98_Heating_Control.pm @@ -154,16 +154,11 @@ sub Heating_Control_Define($$) } my $now = time(); - if (!defined($hash->{PERLTIMEUPDATEMODE})) { - RemoveInternalTimer($hash); - InternalTimer ($now+1, "$hash->{TYPE}_Update", $hash, 0); - } else { - ; - } - if (!defined($hash->{PERLTIMEUPDATEMODE})) { Heating_Control_UpdatePerlTime($hash); } + RemoveInternalTimer($hash); + InternalTimer ($now+1, "$hash->{TYPE}_Update", $hash, 0); readingsBeginUpdate ($hash); readingsBulkUpdate ($hash, "nextUpdate", strftime("Heute, %H:%M:%S",localtime($now+30))); @@ -506,7 +501,6 @@ sub isHeizung($) { } else { $setModifier = ""; } - } return $setModifier; }