Changeset 1774

Show
Ignore:
Timestamp:
06/08/03 22:24:51 (10 years ago)
Author:
mds
Message:

C format fix from Jim Morris <morris@…>

This seems to happen on newer perl versions.
It is fatal in as much as the sensors are not detected.
The solution appears to be to simply add & 0x7f to the
pack statement at line 1138 of sensors_detect...

sub outb
{

my $towrite = pack( "C", $_[1] & 0x7f);

Files:
1 modified

Legend:

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

    r1767 r1774  
    13101310sub outb 
    13111311{ 
    1312   my $towrite = pack "C", $_[1]; 
     1312  my $towrite = pack("C", $_[1] & 0x7f); 
    13131313  sysseek IOPORTS, $_[0], 0 or return -1; 
    13141314  my $nrchars = syswrite IOPORTS, $towrite, 1;