15_CUL_EM.pm: Correct last patch (Forum #60489)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12600 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-11-19 11:13:10 +00:00
parent 0189c1a0da
commit 8f6503c476

View File

@ -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";