Changeset 284
- Timestamp:
- 02/28/99 22:24:16 (14 years ago)
- Location:
- lm-sensors/trunk/prog/detect
- Files:
-
- 2 modified
-
detect.pl (modified) (1 diff)
-
sensors-detect (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/detect.pl
r281 r284 1081 1081 my $hyst = i2c_smbus_read_word_data($file,0x02); 1082 1082 my $os = i2c_smbus_read_word_data($file,0x03); 1083 for ($i = 0x00; $i <= 0x ff; $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; 1087 1087 } 1088 1088 return (3); -
lm-sensors/trunk/prog/detect/sensors-detect
r281 r284 1081 1081 my $hyst = i2c_smbus_read_word_data($file,0x02); 1082 1082 my $os = i2c_smbus_read_word_data($file,0x03); 1083 for ($i = 0x00; $i <= 0x ff; $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; 1087 1087 } 1088 1088 return (3);
