Changeset 284

Show
Ignore:
Timestamp:
02/28/99 22:24:16 (14 years ago)
Author:
phil
Message:

(Phil) Altered LM75 detection slightly to find my LM75.

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

Legend:

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

    r281 r284  
    10811081  my $hyst = i2c_smbus_read_word_data($file,0x02); 
    10821082  my $os = i2c_smbus_read_word_data($file,0x03); 
    1083   for ($i = 0x00; $i <= 0xff; $i += 4) { 
    1084     return if i2c_smbus_read_byte_data($file,$i + 0x01) != $conf; 
    1085     return if i2c_smbus_read_word_data($file,$i + 0x02) != $hyst; 
    1086     return if i2c_smbus_read_word_data($file,$i + 0x03) != $os; 
     1083  for ($i = 0x00; $i <= 0xF; $i += 1) { 
     1084    return if i2c_smbus_read_byte_data($file,($i * 0x10) + 0x01) != $conf; 
     1085    return if i2c_smbus_read_word_data($file,($i * 0x10) + 0x02) != $hyst; 
     1086    return if i2c_smbus_read_word_data($file,($i * 0x10) + 0x03) != $os; 
    10871087  } 
    10881088  return (3); 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r281 r284  
    10811081  my $hyst = i2c_smbus_read_word_data($file,0x02); 
    10821082  my $os = i2c_smbus_read_word_data($file,0x03); 
    1083   for ($i = 0x00; $i <= 0xff; $i += 4) { 
    1084     return if i2c_smbus_read_byte_data($file,$i + 0x01) != $conf; 
    1085     return if i2c_smbus_read_word_data($file,$i + 0x02) != $hyst; 
    1086     return if i2c_smbus_read_word_data($file,$i + 0x03) != $os; 
     1083  for ($i = 0x00; $i <= 0xF; $i += 1) { 
     1084    return if i2c_smbus_read_byte_data($file,($i * 0x10) + 0x01) != $conf; 
     1085    return if i2c_smbus_read_word_data($file,($i * 0x10) + 0x02) != $hyst; 
     1086    return if i2c_smbus_read_word_data($file,($i * 0x10) + 0x03) != $os; 
    10871087  } 
    10881088  return (3);