2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

peak corrections for EM1000WZ by hmayr

git-svn-id: https://svn.fhem.de/fhem/trunk@971 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-08-07 10:33:22 +00:00
parent d8c643064c
commit d695737c8b

View File

@ -150,6 +150,12 @@ CUL_EM_Parse($$)
my $current = $current_cnt*$corr1;
my $peak = $peak_cnt*$corr1;
if($tpe ne 2) {
$peak = 3000/($peak_cnt > 1 ? $peak_cnt : 1)*$corr1;
$peak = ($current > 0 ? $peak : 0);
}
$val = sprintf("CNT: %d CUM: %0.3f 5MIN: %0.3f TOP: %0.3f",
$seqno, $total, $current, $peak);
$hash->{STATE} = $val;