Fix for non-hum reporting devices

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

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;
}