mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
77_SMAEM: contrib 3.5.0
git-svn-id: https://svn.fhem.de/fhem/trunk@20723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f54c4b4da4
commit
73e6f9e5a1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user