UNDEFINED changes

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-12-21 18:03:56 +00:00
parent bf8d44356e
commit ec743ec845
20 changed files with 101 additions and 64 deletions

View File

@@ -129,8 +129,8 @@ CUL_FHTTK_Define($$)
my $name = $a[0];
my $sensor = lc($a[2]);
if($sensor !~ /[0123456789abcdef]/) {
return "erroneous sensor specification $sensor, use one of 0..9..f";
if($sensor !~ /^[0-9a-f]{6}$/) {
return "wrong sensor specification $sensor, need a 6 digit hex number";
}
# $hash->{SENSOR}= "$sensor";
@@ -164,8 +164,8 @@ CUL_FHTTK_Parse($$)
my $def = $defptr{$sensor};
my $self = $def->{NAME};
if(!defined($def)) {
Log 3, sprintf("FHTTK Unknown device %s, please define it", $sensor);
return "UNDEFINED FHTTK";
Log 3, "FHTTK Unknown device $sensor, please define it";
return "UNDEFINED CUL_FHTTK_$sensor CUL_FHTTK $sensor";
}
# if it's not our device