mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 01:06:04 +00:00
15_CUL_EM.pm: Correct last patch (Forum #60489)
git-svn-id: https://svn.fhem.de/fhem/trunk@12600 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
57ae96f7f6
commit
541d74a6ff
@ -143,7 +143,7 @@ CUL_EM_Parse($$)
|
||||
if($oldraw) {
|
||||
my @a = split(" ", $oldraw);
|
||||
if($a[3] > $total_cnt) {
|
||||
$basis_cnt += ($a[3]+$total_cnt)/$corr2;
|
||||
$basis_cnt += ($a[3]+$total_cnt); # Forum #60489
|
||||
readingsSingleUpdate($hash, "basis", $basis_cnt, 0);
|
||||
Log 1, "$n was reset, old CUM $a[3], new CUM: $total_cnt, ".
|
||||
"new basis $basis_cnt";
|
||||
|
Loading…
x
Reference in New Issue
Block a user