[lkml]   [2017]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] IIO: bmp280-core.c: fix error in humidity calculation
On Mon, Apr 10, 2017 at 7:00 PM, Andreas Klinger <> wrote:

> While calculating the compensation of the humidity there are negative values
> interpreted as unsigned because of unsigned variables used. These values as
> well as the constants need to be casted to signed as indicated by the
> documentation of the sensor.
> Changes in v2:
> - cast also constants to signed; otherwise calculation is not correct
> I removed the Acked-By of Linus Walleij because of another change in the
> calculation. Don't know how it should be treated.

Acked-by: Linus Walleij <>

You guys do an awesome job at maintaining the sensor code, thanks.

Linus Walleij

 \ /
  Last update: 2017-04-11 09:47    [W:0.092 / U:12.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site