2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-05 08:45:26 +00:00

Fixed Winbond LM75 emulations non-detect

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@261 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1999-02-20 14:40:24 +00:00
parent 5aa9472f10
commit 44d0906e31
2 changed files with 4 additions and 10 deletions

View File

@@ -636,9 +636,6 @@ sub scan_adapter
next;
next unless i2c_smbus_read_byte(\*FILE) >= 0;
printf "Client found at address 0x%02x\n",$addr;
my @detection_list = ();
my $highest_conf = 0;
my $double_conf = 0;
foreach $chip (@chip_ids) {
if (contains $addr, @{$$chip{i2c_addrs}}) {
print "Probing for $$chip{name}... ";
@@ -796,8 +793,8 @@ sub w83781d_detect
(i2c_smbus_read_byte_data($file,0x58) & 0xfe) != 0x10;
$reg1 = i2c_smbus_read_byte_data($file,0x4a);
@res = (8);
push @res, ($reg1 & 0x07) + 0x48 if $reg1 & 0x08;
push @res, (($reg1 & 0x80) >> 4) + 0x48 if $reg1 & 0x80;
push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08;
push @res, (($reg1 & 0x80) >> 4) + 0x48 unless $reg1 & 0x80;
return @res;
}