mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
77_SMAEM: contrib 4.0.0
git-svn-id: https://svn.fhem.de/fhem/trunk@20761 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22878b1ce1
commit
4795211af4
@ -366,8 +366,8 @@ sub SMAEM_Read ($) {
|
||||
} elsif($dl == 608) { # Each packet of HM with FW >= 2.03.4.R is 608 bytes of packed payload
|
||||
$model = "HM 2.0 >= 2.03.4.R";
|
||||
} else {
|
||||
Log3 ($name, 1, "SMAEM $name - Buffer length ".$dl." is invalid. Don't parse it.");
|
||||
return;
|
||||
$model = "unknown";
|
||||
Log3 ($name, 1, "SMAEM $name - Buffer length ".$dl." is not usual. May be your meter has been updated with a new firmware.");
|
||||
}
|
||||
|
||||
return if (time() <= $hash->{HELPER}{STARTTIME}+30);
|
||||
@ -419,7 +419,7 @@ sub SMAEM_Read ($) {
|
||||
}
|
||||
|
||||
} else {
|
||||
Log3 $hash, 5, "SMAEM $name: - received ".$dl." bytes but interval $hash->{INTERVAL}s isn't expired.";
|
||||
Log3 $hash, 5, "SMAEM $name - received ".$dl." bytes but interval $hash->{INTERVAL}s isn't expired.";
|
||||
}
|
||||
|
||||
return undef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user