00_TCM: baseID check modified

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer 2021-11-09 16:17:13 +00:00
parent 5e63f3e0ec
commit feef99c51b

View File

@ -1546,6 +1546,7 @@ sub TCM_Undef($$) {
}
}
DevIo_CloseDev($hash);
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];
@ -1553,6 +1554,7 @@ sub TCM_Undef($$) {
last;
}
}
}
if (exists $modules{"$hash->{TYPE}"}{ChipID}) {
for (my $i = 0; $i <= @{$modules{"$hash->{TYPE}"}{ChipID}}; $i++) {
if (${$modules{"$hash->{TYPE}"}{ChipID}}[$i] eq $hash->{ChipID}) {