2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

KS300 neg. temp fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@298 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2008-12-23 09:48:31 +00:00
parent 446aaa03d7
commit 3f432006f5

View File

@ -180,8 +180,8 @@ CUL_WS_Parse($$)
my $wnd = sprintf("%0.1f", "$a[9]$a[10].$a[7]" + $hash->{corr3});
my $hum = sprintf( "%02d", "$a[8]$a[5]" + $hash->{corr2});
my $tmp = sprintf("%0.1f", ("$a[6]$a[3].$a[4]"+$hash->{corr1}) *
(($a[3] & 8) ? -1 : 1));
my $ir = ((hex($a[1]) & 0x2)) ? "yes" : "no";
(($a[1]&8) ? -1 : 1));
my $ir = ((hex($a[1]) & 2)) ? "yes" : "no";
$val = "T: $tmp H: $hum W: $wnd R: $rain IR: $ir";
$devtype = "KS300/2";