10_IT.pm: don't give "Undefined value" messages as was with r6818

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6979 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-11-15 10:15:10 +00:00
parent 9cfa777bfe
commit 7a09a06137

View File

@@ -62,9 +62,10 @@ IT_SetState($$$$)
{
my ($hash, $tim, $vt, $val) = @_;
return undef;
$val = $1 if($val =~ m/^(.*) \d+$/);
return "Undefined value $val" if(!defined($it_c2b{$val}));
return undef;
}
#############################