a problem with lm-sensor 2.10.7.‏

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's a fail in the transcription, the sensors_chip_name is the same in the two calls, sorry.
The right code is the yesterday's code changing this extract:

double w83781d(const sensors_chip_name *chip_name)

{
  double cur;
  sensors_get_feature(*chip_name,SENSORS_W83781D_TEMP2,&cur);
  return(cur);
}

Moreover, with this error, the compiler, I think, would show at least a warning message, and the problem it's in execution time, not in compiler time.
Thanks!

> On Mon, 10 Nov 2008, Sergio Gutierrez Verde wrote:
> > double w83781d(const sensors_chip_name *name)
> > {> > double cur;
> >> > sensors_get_feature(*chip_name,SENSORS_W83781D_TEMP2,&cur)
> > return(cur);
> > }
>> Since you used "*name" in the argument, probably
>> sensors_get_feature(*name,SENSORS_W83781D_TEMP2,&cur)
>> would work better. What you are doing now is probably equal to>> sensors_get_feature(NULL,SENSORS_W83781D_TEMP2,&cur)
>> which would likely cause the error.
>> Matt Roberds
> 

_________________________________________________________________
 Ahora con Internet Explorer 7, ll?vate gratis un gui?o personalizado
http://www.vivelive.com/ieak7/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20081111/f2d377d3/attachment.html 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux