mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Complete GL520SM detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5424 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -4386,9 +4386,9 @@ sub gl520sm_detect
|
||||
my ($file, $addr) = @_;
|
||||
return unless i2c_smbus_read_byte_data($file, 0x00) == 0x20;
|
||||
return unless (i2c_smbus_read_byte_data($file, 0x03) & 0x80) == 0x00;
|
||||
# The line below must be better checked before I dare to use it.
|
||||
# return unless i2c_smbus_read_byte_data($file, 0x01) == 0x00;
|
||||
return (5);
|
||||
$reg = i2c_smbus_read_byte_data($file, 0x01);
|
||||
return unless $reg == 0x00 or $reg == 0x80;
|
||||
return (6);
|
||||
}
|
||||
|
||||
# Registers used:
|
||||
|
Reference in New Issue
Block a user