git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@236 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2008-09-04 07:33:30 +00:00
parent 72019ea5b2
commit 2fb6fa587a

View File

@ -36,10 +36,10 @@ CUL_EM_Define($$)
$hash->{CODE} = $a[2];
if($a[2] >= 1 && $a[2] <= 4) { # EMWZ: nRotation in 5 minutes
my $c = (int(@a) > 3 ? 150 : $a[3]);
my $c = (int(@a) > 3 ? $a[3] : 150);
$hash->{corr} = (12/$c);
} elsif($a[2] >= 5 && $a[2] <= 8) { # EMEM: 0.01
$hash->{corr} = (int(@a) > 3 ? 0.01 : $a[3]);
$hash->{corr} = (int(@a) > 3 ? $a[3] : 0.01);
} else {
$hash->{corr} = 1;
}