From 2415b2e198a5ba1cbf6e6a98b0ce6248688fd04b Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 6 Jul 2020 21:52:31 +0000 Subject: [PATCH] 76_SMAPortal: contrib 3.3.3 git-svn-id: https://svn.fhem.de/fhem/trunk@22364 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SMAPortal.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SMAPortal.pm b/fhem/contrib/DS_Starter/76_SMAPortal.pm index e9f1a8c6d..b4fa9fb00 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortal.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortal.pm @@ -1947,7 +1947,7 @@ sub ParseData { ## no critic delcookiefile ($hash); $hash->{HELPER}{GETTER} = $getp; $hash->{HELPER}{SETTER} = $setp; - CallInfo($hash,1,1); # neuer Versuch (nach Threshold exceed) im gleichen Cycle mit gelöschtem Cookie + CallInfo($hash,1,1); # neuer Versuch (nach Threshold exceed) im gleichen Cycle mit gelöschtem Cookie return; } @@ -1957,7 +1957,7 @@ sub ParseData { ## no critic $hash->{HELPER}{GETTER} = $getp; $hash->{HELPER}{SETTER} = $setp; $hash->{HELPER}{ACTCYCLE}++; - CallInfo($hash,1,0); # neuer Abrufcycle + CallInfo($hash,1,0); # neuer Abrufcycle return; } @@ -1965,7 +1965,7 @@ sub ParseData { ## no critic my $btime = $hash->{HELPER}{CYCLEBTIME}; my $etime = (gettimeofday())[0]; my $cycles = $hash->{HELPER}{ACTCYCLE}; - my $ctime = int(($etime - $btime) / $cycles); # durchschnittliche Laufzeit für einen Zyklus + my $ctime = int(($etime - $btime) / $cycles); # durchschnittliche Laufzeit für einen Zyklus $state = decode_base64($a[6]); @@ -1974,7 +1974,7 @@ sub ParseData { ## no critic @da = split "###", $lc; } - deleteData($hash, 1) if($getp ne "none"); # Daten nur löschen wenn Datenabruf (kein Verbraucher schalten) + deleteData($hash, 0) if($getp ne "none"); # Daten nur löschen wenn Datenabruf (kein Verbraucher schalten) readingsBeginUpdate($hash);