Show
Ignore:
Timestamp:
08/18/00 02:28:00 (14 years ago)
Author:
frodo
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r853 r859  
    757757    } 
    758758  } 
    759   if (! defined @res) { 
     759  if (! @res) { 
    760760    print ("Sorry, no PCI bus adapters found.\n"); 
    761761  } else { 
     
    14571457  my $i; 
    14581458  my ($file,$addr) = @_; 
    1459   return if (i2c_smbus_read_byte_data($file,$0x02) & 0xc0) != 0; 
     1459  return if (i2c_smbus_read_byte_data($file,0x02) & 0xc0) != 0; 
    14601460  for ($i = 0x2a; $i <= 0x3d; $i++) { 
    14611461    my $reg = i2c_smbus_read_byte_data($file,$i);