Fix for non-hum reporting devices

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@401 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-06-25 09:31:41 +00:00
parent efe7090c38
commit f6f1482bce

View File

@ -220,7 +220,7 @@ CUL_WS_Parse($$)
my $name = $hash->{NAME};
Log GetLogLevel($name,4), "CUL_WS $devtype $name: $val";
if($hum < 0) {
if(defined($hum) && $hum < 0) {
Log 1, "BOGUS: $name reading: $val, skipping it";
return $name;
}