Re: [PATCH] iio: pressure: bmp280: fix temp compensation

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

 



On Wed, Apr 08, 2015 at 06:26:12PM +0300, Irina Tirdea wrote:
> Temperature reads on bmp280 device always return 0,
> due to a missing step in the compensation formula
> (data->tfine is never initialized).
> 
> Initialize data->tfine value so we get correct
> temperature and pressure values.
> 
> Signed-off-by: Irina Tirdea <irina.tirdea@xxxxxxxxx>

Reviewed-by: Vlad Dogaru <vlad.dogaru@xxxxxxxxx>

Nice catch, this must have been lost during a refactoring.

Thanks,
Vlad
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux