Changeset 285

Show
Ignore:
Timestamp:
03/01/99 14:27:57 (14 years ago)
Author:
frodo
Message:

Solved i2c_sub_addrs not being printed problem (I hope)

Location:
lm-sensors/trunk/prog/detect
Files:
2 modified

Legend:

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

    r284 r285  
    947947                        i2c_devnr => $adapter_nr, 
    948948                      }; 
    949           $new_hash->{i2c_sub_addrs} = \@chips if (@chips); 
     949          my @chips_copy = @chips, $new_hash->{i2c_sub_addrs} = \@chips_copy  
     950                           if (@chips); 
    950951          add_i2c_to_chips_detected $$chip{driver}, $new_hash; 
    951952        } else { 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r284 r285  
    947947                        i2c_devnr => $adapter_nr, 
    948948                      }; 
    949           $new_hash->{i2c_sub_addrs} = \@chips if (@chips); 
     949          my @chips_copy = @chips, $new_hash->{i2c_sub_addrs} = \@chips_copy  
     950                           if (@chips); 
    950951          add_i2c_to_chips_detected $$chip{driver}, $new_hash; 
    951952        } else {