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:
parent
43a9f59014
commit
3f28886245
@ -1384,12 +1384,14 @@ 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
|
||||
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});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user