mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +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
10
fhem/fhem.pl
10
fhem/fhem.pl
@ -1384,10 +1384,12 @@ AssignIoPort($)
|
|||||||
my $cl = $defs{$p}{Clients};
|
my $cl = $defs{$p}{Clients};
|
||||||
$cl = $modules{$defs{$p}{TYPE}}{Clients} if(!$cl);
|
$cl = $modules{$defs{$p}{TYPE}}{Clients} if(!$cl);
|
||||||
|
|
||||||
if((defined($cl) && $cl =~ m/:$hash->{TYPE}:/) &&
|
if($cl && $defs{$p}{NAME} ne $hash->{NAME}) { # e.g. RFR
|
||||||
$defs{$p}{NAME} ne $hash->{NAME}) { # e.g. RFR
|
my @fnd = grep { $hash->{TYPE} =~ m/^$_$/; } split(":", $cl);
|
||||||
$hash->{IODev} = $defs{$p};
|
if(@fnd) {
|
||||||
last;
|
$hash->{IODev} = $defs{$p};
|
||||||
|
last;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log 3, "No I/O device found for $hash->{NAME}" if(!$hash->{IODev});
|
Log 3, "No I/O device found for $hash->{NAME}" if(!$hash->{IODev});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user