mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
Fix PCA9540 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2596 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
937734ebdb
commit
ec02d1a532
1 file changed
+1
-1
@@ -4085,7 +4085,7 @@ sub pca9540_detect
|
||||
my ($file, $addr) = @_;
|
||||
my $reg = i2c_smbus_read_byte($file);
|
||||
|
||||
return if ($reg & 0xf7);
|
||||
return if ($reg & 0xfa);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
return if $reg != i2c_smbus_read_byte($file);
|
||||
|
||||
Reference in new issue
Block a user