Changeset 678

Show
Ignore:
Timestamp:
12/29/99 21:13:25 (13 years ago)
Author:
frodo
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r668 r678  
    924924        push @entry_addrs, @{$detected_ref->[$i]->{i2c_sub_addrs}} 
    925925             if exists $detected_ref->[$i]->{i2c_sub_addrs}; 
    926         if (any_list_match \@entry_addrs, \@hash_addrs) { 
     926        if ($detected_ref->[$i]->{i2c_devnr} == $datahash->{i2c_devnr} and 
     927            any_list_match \@entry_addrs, \@hash_addrs) { 
    927928          push @$misdetected_ref,$detected_ref->[$i]; 
    928929          splice @$detected_ref, $i, 1;