2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Fix discarding of overruled I2C detections.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5527 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-12-05 17:10:56 +00:00
parent d177d58983
commit 8ceec92187

View File

@@ -2668,7 +2668,7 @@ sub add_i2c_to_chips_detected
# detections without replacing them with second-best ones. Too bad.
foreach $detected_ref (values %chips_detected) {
for ($i = @$detected_ref-1; $i >=0; $i--) {
next unless defined $detected_entry->{i2c_addr};
next unless defined $detected_ref->[$i]->{i2c_addr};
@entry_addrs = ($detected_ref->[$i]->{i2c_addr});
push @entry_addrs, @{$detected_ref->[$i]->{i2c_sub_addrs}}
if exists $detected_ref->[$i]->{i2c_sub_addrs};