Two small sensors-detect errors fixed:

* LM80 detect was broken, because it tried to access register $0x02
  (instead of 0x02); this resulted in a runtime warning.
* At one place, another perl warning is fixed now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@859 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 2000-08-18 00:28:00 +00:00
1 parent 94a2aa1305
commit 44ecc534ba
1 file changed
+2 -2
+2 -2
View File
@@ -756,7 +756,7 @@ sub adapter_pci_detection
}
}
}
if (! defined @res) {
if (! @res) {
print ("Sorry, no PCI bus adapters found.\n");
} else {
printf ("Probe succesfully concluded.\n");
@@ -1456,7 +1456,7 @@ sub lm80_detect
{
my $i;
my ($file,$addr) = @_;
return if (i2c_smbus_read_byte_data($file,$0x02) & 0xc0) != 0;
return if (i2c_smbus_read_byte_data($file,0x02) & 0xc0) != 0;
for ($i = 0x2a; $i <= 0x3d; $i++) {
my $reg = i2c_smbus_read_byte_data($file,$i);
return if i2c_smbus_read_byte_data($file,$i+0x40) != $reg;