From 73e6f9e5a141d13c06419e622c74c9c2234c9981 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Thu, 12 Dec 2019 21:30:28 +0000 Subject: [PATCH] 77_SMAEM: contrib 3.5.0 git-svn-id: https://svn.fhem.de/fhem/trunk@20723 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/77_SMAEM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/77_SMAEM.pm b/fhem/contrib/DS_Starter/77_SMAEM.pm index 856ceb171..9d4115d29 100644 --- a/fhem/contrib/DS_Starter/77_SMAEM.pm +++ b/fhem/contrib/DS_Starter/77_SMAEM.pm @@ -338,7 +338,7 @@ sub SMAEM_Read ($) { Log3 ($name, 4, "SMAEM $name - ### Begin of new SMA Energymeter $smaserial get data cycle ###"); Log3 ($name, 4, "SMAEM $name - ###############################################################"); Log3 ($name, 4, "SMAEM $name - discarded cycles since module start: $hash->{HELPER}{FAULTEDCYCLES}"); - Log3 ($name, 1, "SMAEM $name - Buffer length ".$dl." ready to parse:\n".$hex); + Log3 ($name, 5, "SMAEM $name - Buffer length ".$dl." ready to parse:\n".$hex); if($hash->{HELPER}{RUNNING_PID}) { Log3 ($name, 3, "SMAEM $name - WARNING - old process $hash->{HELPER}{RUNNING_PID}{pid} has been killed to start a new BlockingCall"); @@ -407,7 +407,7 @@ sub SMAEM_DoParse ($) { my $offset = 0; my $grid_freq; $hex =~ /.*000d04.{11}(000e04)(.*)(001504).*/; - if($1 eq "000e04") { + if($1 && $1 eq "000e04") { $grid_freq = hex($2)/1000; $offset = 16; }