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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user