mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
00_TCM: baseID check modified
git-svn-id: https://svn.fhem.de/fhem/trunk@25207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
64ba2f2be4
commit
11162a33c2
@ -1546,11 +1546,13 @@ sub TCM_Undef($$) {
|
||||
}
|
||||
}
|
||||
DevIo_CloseDev($hash);
|
||||
for (my $i = 0; $i <= @{$modules{"$hash->{TYPE}"}{BaseID}}; $i++) {
|
||||
if (${$modules{"$hash->{TYPE}"}{BaseID}}[$i] eq $hash->{BaseID}) {
|
||||
Log3 $name, 4, "TCM $name remove module BaseID: " . ${$modules{"$hash->{TYPE}"}{BaseID}}[$i];
|
||||
splice(@{$modules{"$hash->{TYPE}"}{BaseID}}, $i, 1);
|
||||
last;
|
||||
if (exists $modules{"$hash->{TYPE}"}{BaseID}) {
|
||||
for (my $i = 0; $i <= @{$modules{"$hash->{TYPE}"}{BaseID}}; $i++) {
|
||||
if (${$modules{"$hash->{TYPE}"}{BaseID}}[$i] eq $hash->{BaseID}) {
|
||||
Log3 $name, 4, "TCM $name remove module BaseID: " . ${$modules{"$hash->{TYPE}"}{BaseID}}[$i];
|
||||
splice(@{$modules{"$hash->{TYPE}"}{BaseID}}, $i, 1);
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (exists $modules{"$hash->{TYPE}"}{ChipID}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user