2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

AssignIoPort handles the Client as a list of regexps

git-svn-id: https://svn.fhem.de/fhem/trunk@3204 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-05-21 13:25:51 +00:00
parent 43a9f59014
commit 3f28886245

View File

@ -1384,10 +1384,12 @@ AssignIoPort($)
my $cl = $defs{$p}{Clients};
$cl = $modules{$defs{$p}{TYPE}}{Clients} if(!$cl);
if((defined($cl) && $cl =~ m/:$hash->{TYPE}:/) &&
$defs{$p}{NAME} ne $hash->{NAME}) { # e.g. RFR
$hash->{IODev} = $defs{$p};
last;
if($cl && $defs{$p}{NAME} ne $hash->{NAME}) { # e.g. RFR
my @fnd = grep { $hash->{TYPE} =~ m/^$_$/; } split(":", $cl);
if(@fnd) {
$hash->{IODev} = $defs{$p};
last;
}
}
}
Log 3, "No I/O device found for $hash->{NAME}" if(!$hash->{IODev});