mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-06-17 05:40:11 +00:00
00_TCM: ARRAY reference error corrected
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25016 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3431c0d622
commit
fafa50f3be
|
@ -1553,11 +1553,13 @@ sub TCM_Undef($$) {
|
|||
last;
|
||||
}
|
||||
}
|
||||
for (my $i = 0; $i <= @{$modules{"$hash->{TYPE}"}{ChipID}}; $i++) {
|
||||
if (${$modules{"$hash->{TYPE}"}{ChipID}}[$i] eq $hash->{ChipID}) {
|
||||
Log3 $name, 4, "TCM $name remove module ChipID: " . ${$modules{"$hash->{TYPE}"}{ChipID}}[$i];
|
||||
splice(@{$modules{"$hash->{TYPE}"}{ChipID}}, $i, 1);
|
||||
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}) {
|
||||
Log3 $name, 4, "TCM $name remove module ChipID: " . ${$modules{"$hash->{TYPE}"}{ChipID}}[$i];
|
||||
splice(@{$modules{"$hash->{TYPE}"}{ChipID}}, $i, 1);
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
RemoveInternalTimer($hash, 'TCM_msgCounter');
|
||||
|
|
Loading…
Reference in New Issue
Block a user