Re: [PATCH] hwmon: (ina2xx) implement update_interval attribute for ina226

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

 



2015-01-08 18:05 GMT+01:00 Guenter Roeck <linux@xxxxxxxxxxxx>:
> What is the purpose of multiplying the calculated average by 2 ?

The comment above says:

> +     /*
> +      * Add bus and shunt voltage conversion times and multiple them
> +      * by the averaging rate. Return the result in milliseconds.
> +      */

Since both conversion times are the same and equal
INA226_CONV_TIME_DEFAULT I just multiplied it by 2 - I thought it was
clear enough. I'll fix that in the next iteration.

Bart

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



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

  Powered by Linux