Show
Ignore:
Timestamp:
10/20/99 04:13:51 (15 years ago)
Author:
mds
Message:

(mds) fix LM84 detection. Mfr ID in different place than the other chips.

Files:
1 modified

Legend:

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

    r603 r604  
    14391439# Returns: undef if not detected, (6) or (3) if detected. 
    14401440# Registers used: 
     1441#   0x04: Company ID (LM84 only) 
    14411442#   0xfe: Company ID 
     1443#   0xff: Revision (Maxim only) 
    14421444#   0x02: Status 
    14431445# Note: Especially the Maxim has very bad detection; we give it a low  
     
    14491451  return if $chip == 0 and i2c_smbus_read_byte_data($file,0xfe) != 0x41; 
    14501452  return if $chip == 3 and i2c_smbus_read_byte_data($file,0xfe) != 0x49; 
    1451   return if $chip == 4 and i2c_smbus_read_byte_data($file,0xfe) != 0x00; 
     1453  return if $chip == 4 and i2c_smbus_read_byte_data($file,0x04) != 0x00; 
    14521454  return if $chip == 5 and i2c_smbus_read_byte_data($file,0xfe) != 0x23; 
    14531455  return if $chip == 2 and i2c_smbus_read_byte_data($file,0xfe) != 0x4d and