Fixed a problem when the same address was used on different adapters

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@678 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-12-29 20:13:25 +00:00
1 parent 8ffd490521
commit 90bc2835e6
1 file changed
+2 -1
+2 -1
View File
@@ -923,7 +923,8 @@ sub add_i2c_to_chips_detected
@entry_addrs = ($detected_ref->[$i]->{i2c_addr});
push @entry_addrs, @{$detected_ref->[$i]->{i2c_sub_addrs}}
if exists $detected_ref->[$i]->{i2c_sub_addrs};
if (any_list_match \@entry_addrs, \@hash_addrs) {
if ($detected_ref->[$i]->{i2c_devnr} == $datahash->{i2c_devnr} and
any_list_match \@entry_addrs, \@hash_addrs) {
push @$misdetected_ref,$detected_ref->[$i];
splice @$detected_ref, $i, 1;
}