10_FBDECT.pm: somewhat better autocreate handling (Forum #39636)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9042 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -168,7 +168,7 @@ FBDECT_Parse($$@)
|
|||||||
my $hash = $modules{FBDECT}{defptr}{"$ioName:$id"};
|
my $hash = $modules{FBDECT}{defptr}{"$ioName:$id"};
|
||||||
$hash = $modules{FBDECT}{defptr}{$id} if(!$hash);
|
$hash = $modules{FBDECT}{defptr}{$id} if(!$hash);
|
||||||
if(!$hash) {
|
if(!$hash) {
|
||||||
my $ret = "UNDEFINED FBDECT_$id FBDECT $ioName:$id switch";
|
my $ret = "UNDEFINED FBDECT_${ioName}_$id FBDECT $ioName:$id switch";
|
||||||
Log3 $ioName, 3, "$ret, please define it";
|
Log3 $ioName, 3, "$ret, please define it";
|
||||||
DoTrigger("global", $ret);
|
DoTrigger("global", $ret);
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user