Changeset 274

Show
Ignore:
Timestamp:
02/25/99 09:37:29 (14 years ago)
Author:
frodo
Message:

Corrected alias detection

I forgot to set the I2C address correctly, so it was always comparing with
device 0x00 :-(

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

Legend:

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

    r273 r274  
    800800                 "/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"), 
    801801           next; 
     802      i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$j]->{address} or 
     803           print("Can't set I2C address for ", 
     804                 "/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"), 
     805           next; 
    802806      if (&$alias_detect ($datahash->{isa_addr},\*FILE, 
    803807                          $new_misdetected_ref->[$j]->{address})) { 
     
    815819      open FILE,"/dev/i2c-$new_detected_ref->[$j]->{devnr}" or  
    816820           print("Can't open ", 
     821                 "/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"), 
     822           next; 
     823      i2c_set_slave_addr \*FILE,$new_detected_ref->[$j]->{address} or 
     824           print("Can't set I2C address for ", 
    817825                 "/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"), 
    818826           next; 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r273 r274  
    800800                 "/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"), 
    801801           next; 
     802      i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$j]->{address} or 
     803           print("Can't set I2C address for ", 
     804                 "/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"), 
     805           next; 
    802806      if (&$alias_detect ($datahash->{isa_addr},\*FILE, 
    803807                          $new_misdetected_ref->[$j]->{address})) { 
     
    815819      open FILE,"/dev/i2c-$new_detected_ref->[$j]->{devnr}" or  
    816820           print("Can't open ", 
     821                 "/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"), 
     822           next; 
     823      i2c_set_slave_addr \*FILE,$new_detected_ref->[$j]->{address} or 
     824           print("Can't set I2C address for ", 
    817825                 "/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"), 
    818826           next;