mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +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:
1 parent
d177d58983
commit
8ceec92187
1 file changed
+1
-1
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user