mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
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:
1 parent
8ffd490521
commit
90bc2835e6
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user